故障描述:在添加Nginx的子配置文件后报错误nginx:[emerg]unknownlogformat"main"无法重新加载,仔细查看配置没有语法错误经过调试才发现是定义log_format的时候写到HTTP模块最下面,导致子配置文件无法识别。错误的写法include/opt/app/nginx/conf/conf.d/*.conf;
log_form..
分类:
其他好文 时间:
2015-07-10 16:55:27
阅读次数:
923
nginx 报错 upstream timed out (110: Connection timed out)解决方案error.log报错如下:2013/05/18 21:21:36 [error] 11618#0: *324911 upstream timed out (110: Connect...
分类:
Web程序 时间:
2015-06-25 13:44:06
阅读次数:
181
vi /etc/selinux/config#SELINUX=enforcing #注释掉#SELINUXTYPE=targeted #注释掉SELINUX=disabled #增加:wq! #保存退出setenforce 0 #使配置立即生效
分类:
其他好文 时间:
2015-06-10 11:56:04
阅读次数:
116
参考命令:ldd$(which/usr/local/nginx/sbin/nginx)ldd$(which/usr/lib/jvm/jre-1.7.0/bin/java)报错信息:Nginx报错信息:servicenginxrestart/usr/local/nginx/sbin/nginx:errorwhileloadingsharedlibraries:libgd.so.2:cannotopensharedobjectfile:Nosuchfileordirectoryngi..
分类:
其他好文 时间:
2015-04-23 13:37:42
阅读次数:
366
PHP版本 5.4 nginx 1.62 nginx报错: 2015/04/07 05:50:43 [error] 1788#0: *413 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected end of file in /data/bei123/class/functi...
分类:
数据库 时间:
2015-04-19 09:01:53
阅读次数:
420
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with n...
分类:
其他好文 时间:
2015-02-20 23:12:56
阅读次数:
299
配置好nginx+php-fpm,访问首页,提示报错:
2015/01/14 23:04:39 [error] 10964#2788: *2 rewrite or internal redirection cycle while internally redirecting to "/", client: 127.0.0.1, server: bk, request: "GET / HTTP/1...
分类:
其他好文 时间:
2015-01-15 00:34:42
阅读次数:
2115
查看了进程, nginx, php-fpm都在运行, 排除程序错误, 那么就是配置的问题了.一个可能的错误, 是由于配置中的fastcgi_pass 配置错了错误的配置如下server { listen 80; server_name localhost; #cha...
分类:
其他好文 时间:
2014-12-30 20:24:41
阅读次数:
3066