- 博客(46)
- 资源 (5)
- 收藏
- 关注
原创 nginx+tomcat配置反向代理
问题tomcat配置反向代理服务器答案vim /etc/nginx/nginx.confhttpd配置项下加入upstream tomcat.test { #tomcat.test为任意字符server 192.168.99.101:8080 weight=1;server 192.168.99.102:8080 weight=1;}server配置项下加入location / {proxy_pass http://tomcat.test;}...
2020-08-13 19:17:04 210
原创 启动tomcat时报错
问题Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these environment variable is needed to run this program答案yum -y install java再启动
2020-08-13 19:08:31 198
原创 yum 下载 nginx 没有可用软件包 nginx。
问题没有可用软件包 nginx。答案wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
2020-08-13 19:01:50 479
原创 -bash: ifconfig: 未找到命令
问题-bash: ifconfig: 未找到命令原因最小化安装没有开发环境需要装各种基础软件答案yum install -y net-tools
2020-08-12 16:31:17 293
原创 关于YUM无法下载nginx
问题[root@localhost ~]# yum -y install nginx已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfilebase: mirrors.aliyun.comextras: mirrors.aliyun.comupdates: mirrors.aliyun.com没有可用软件包 nginx。错误:无须任何处理原因缺少下载源答案wget -O /etc/yum.rep
2020-08-12 08:00:22 405 1
原创 关于NFS永久挂载方法
问题永久挂载NFS共享文件系统答案vim /etc/fstab添加以下IP地址需改192.168.99.101:/NFS/httpd1 /var/www/html nfs defaults,_netdev 0 0
2020-08-10 16:58:50 3393
原创 关于挂载NFS共享文件出错
问题mount: 文件系统类型错误、选项错误、192.168.88.110:/NFS/httpd2 上有坏超级块、缺少代码页或助手程序,或其他错误(对某些文件系统(如 nfs、cifs) 您可能需要一款 /sbin/mount.<类型> 助手程序)答案yum -y install nfs-utils...
2020-08-09 16:18:25 508
原创 mount.nfs: mount point /var/www/html does not exist
问题mount.nfs: mount point /var/www/html does not exist找不到目录答案mkdir -p /var/www/html或yum -y install httpd
2020-08-09 09:55:47 4051
原创 创建:程序未注册 clnt_create: RPC: Program not registered
问题NFS:clnt_create: RPC: Program not registered答案systemctl start nfs rpcbind
2020-08-08 16:21:04 860 1
原创 [错误]无法解析插件org . Apache . maven . plugins:maven-surefire-Plugin:2 . 21 . 0或其依赖项之一:无法读取组织的工件描述符拒绝连接(连接
问题[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.21.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.21.0: Could not transfer artifact org.apac
2020-08-06 16:02:35 3708
原创 [错误]未知的生命周期阶段“打包”。
问题[ERROR] Unknown lifecycle phase “packge”. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compil
2020-08-06 15:50:08 883
原创 maven打包找不到文件
问题[root@localhost ROOT]# mvn干净包-Dmaven.skip.testDmaven.skip.test[INFO] Scanning for projects…[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ---------------------------------------------------
2020-08-06 10:26:24 528
原创 TOMCAT访问的时候为啥必须要加8080才能访问?
问题TOMCAT访问的时候为啥必须要加8080端口才能访问?答案vim /usr/local/tomcat/conf/server.xml改为
2020-08-05 19:48:52 721
原创 既没有定义JAVA_HOME,也没有定义JRE_HOME环境变量 运行该程序至少需要这些环境变量中一个
问题Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these environment variable is needed to run this program答案yum -y install java
2020-08-05 18:27:52 2225
原创 超文本传输协议状态404–未找到
问题 tomcat:HTTP Status 404 – Not FoundHTTP Status 404 – Not Found═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════Type Status ReportMessage /Description The origin server
2020-08-05 13:07:27 341
原创 卷曲:(52)来自服务器的空回复
问题curl: (52) Empty reply from server答案vim /usr/local/tomcat/conf/server.xml<?xml version="1.0" encoding="UTF-8"?>改为<?xml version="1.1" encoding="UTF-8"?>
2020-08-05 11:15:44 258
原创 配置:错误:找不到xml2-config。请检查您的libxml2安装。
问题checking for xml2-config path…configure: error: xml2-config not found. Please check your libxml2 installation.答案yum -y install libxml2-devel
2020-08-03 08:22:49 1096
原创 如果配置失败,请尝试使用-vpx-dir=<DIR > 如果配置失败,请尝试使用-jpeg-dir=<DIR > 配置:错误:找不到png.h。
问题If configure fails try --with-vpx-dir=If configure fails try --with-jpeg-dir=configure: error: png.h not found.答案yum -y install libpng libpng-devel pcre pcre-devel libjepeg-devel
2020-08-03 08:22:38 387
原创 -bash: php-fpm: 未找到命令
问题-bash: php-fpm: 未找到命令答案ln -s /usr/local/php5/bin/* /usr/local/binln -s /usr/local/php5/sbin/* /usr/local/sbin
2020-08-03 08:22:20 2637
原创 engine:[emer]getpwnam(“ engine x “)失败
问题nginx: [emerg] getpwnam(“nginx”) failed答案useradd -M -s /sbin/nologin nginxchown nginx:nginx /usr/local/nginxnginx
2020-08-03 08:21:33 118
原创 mysql -bash: mysqladmin: 未找到命令
问题-bash: mysqladmin: 未找到命令答案ln -s /usr/local/mysql/bin/* /usr/local/bin
2020-08-03 08:21:17 2656 1
原创 ERROR 1113 (42000): A table must have at least 1 column
问题ERROR 1113 (42000): A table must have at least 1 column错误1113 (42000):一个表必须至少有一列答案create table www(DD INT);
2020-08-03 08:20:59 6194
原创 请删除CMakeCache.txt并重新运行cmake。
问题remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.Call Stack (most recent call first):cmake/readline.cmake:128 (FIND_CURSES)cmake/readline.cmake:218 (MYSQL_USE_BUNDLED
2020-08-02 09:16:58 3921
原创 配置:错误:找不到mcrypt.h。请重新安装libmcrypt。
问题configure: error: mcrypt.h not found. Please reinstall libmcrypt答案第一步wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo第二步yum install php-mcrypt libmcrypt libmcrypt-devel即可
2020-08-02 09:16:23 741
原创 错误2002 (HY000):无法通过套接字“/tmp/MySQL . sock”(2)连接到本地MySQL服务器
问题ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)答案mysql-5.6.36]# cp support-files/mysql.server /etc/rc.d/init.d/mysqld第二步chmod +x /etc/rc.d/init.d/mysqld第三步chkconfig --add mysqld第四步systemctl daemon-rel
2020-08-02 09:15:48 1394 1
原创 linux -bash: 未预期的符号 `(‘ 附近有语法错误
问题-bash: 未预期的符号 `(’ 附近有语法错误答案echo " <? phpinfo(); ?>" >/usr/local/index.php使用特殊字符时需要使用双引号
2020-08-02 09:15:23 12766
原创 正在检查操作系统 +Linux 3 . 10 . 0-1127 . El 7 . x86 _ 64 x86 _ 64 检查C编译器...未发现
问题checking for OSLinux 3.10.0-1127.el7.x86_64 x86_64checking for C compiler … not found./configure: error: C compiler cc is not found答案yum -y install gcc-c++
2020-08-02 09:14:59 2131
原创 /configure:错误:HTTP重写模块需要PCRE库。
问题./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source wit
2020-08-02 09:14:39 1210
原创 ./configure:错误:HTTP gzip模块需要zlib库
问题./configure: error: the HTTP gzip module requires the zlib library.You can either disable the module by using --without-http_gzip_moduleoption, or install the zlib library into the system, or build the zlib librarystatically from the source with ngin
2020-08-02 09:14:20 1647
原创 -bash: /usr/local/sbin/nginx: 没有那个文件或目录
问题-bash: /usr/local/sbin/nginx: 没有那个文件或目录答案ln -s /usr/local/nginx/sbin/nginx /usr/local/sbin/
2020-08-02 09:14:00 7951
原创 linux -bash: htpasswd: 未找到命令
问题-bash: htpasswd: 未找到命令答案yum -y install httpd-tools
2020-08-02 09:13:41 2985 1
原创 致命错误:请在执行/usr/local/MySQL/scripts/MySQL _ install _ db之前安装以下Perl模块:
问题FATAL ERROR: please install the following Perl modules before executing /usr/local/mysql/scripts/mysql_install_db:Data::Dumper答案yum -y install autoconf
2020-08-02 09:13:18 448
原创 CMake错误:源目录“/usr/src/MySQL-5 . 6 . 36/-dwith _ extra _ charset = all”不存在。 指定-使用帮助,或按键盘图形用户界面上的帮助按钮。
问题CMake Error: The source directory “/usr/src/mysql-5.6.36/-dwith_extra_charsets=all” does not exist.Specify --help for usage, or press the help button on the CMake GUI.答案配置时候大写cmake -DCMAKE_INSTALL_PRFIX=/usr/local/mysql -DSYSCONFIDIR=/etc -DDEFAULT_
2020-08-01 14:17:06 569
原创 httpd项目 curl: (7) Failed connect to www.kisi.com:80; 拒绝连接
问题curl www.kisi.comcurl: (7) Failed connect to www.kisi.com:80; 拒绝连接答案vim /usr/local/httpd/conf/httpd.conf添加或取消注释后重新加载一下#Include conf/extra/httpd-vhosts.conf
2020-08-01 13:51:11 2138 1
原创 linux httpd虚拟主机只访问一个网址内容
问题httpd虚拟主机只访问一个网址内容答案vim /usr/local/httpd/conf/httpd.conf#Include conf/extra/httpd-vhosts.conf去掉注释Include conf/extra/httpd-vhosts.conf
2020-08-01 13:42:55 192
原创 未能重新加载httpd.service:作业类型重新加载不适用于单元httpd.service。
问题Failed to reload httpd.service: Job type reload is not applicable for unit httpd.service.See system logs and ‘systemctl status httpd.service’ for details.答案systemctl stop httpdsystemctl start httpd
2020-08-01 13:39:52 3307
linux无人值守装系统WUREN.zip
2020-08-02
WUREN.tar.gz
2020-07-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人