nginx 错误日志分析
2017-03-23 09:52
609 查看
502
1、查看nginx错误日志
tailf /data/log/nginx/error.log
原因:php-fpm.conf里面设置了php-cgi进程最大执行时间为5秒,超过则终止并断开nginx
vim /data/server/php/etc/php-fpm.conf
request_terminate_timeout = 5
tailf /data/log/nginx/error.log
原因:php超过了最大的执行时间
1、查看nginx错误日志
tailf /data/log/nginx/error.log
2017/03/23 09:47:35 [error] 16154#0: *460 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 14.23.168.226, server: localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "zjdan.com"
原因:php-fpm.conf里面设置了php-cgi进程最大执行时间为5秒,超过则终止并断开nginx
vim /data/server/php/etc/php-fpm.conf
request_terminate_timeout = 5
tailf /data/log/nginx/error.log
2017/03/28 18:21:32 [error] 28965#0: *544 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.9.206, server: weixin-develop.com, request: "GET /accept.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fcgi.sock:", host: "weixin-develop.com"
原因:php超过了最大的执行时间
相关文章推荐
- Linux服务器nginx访问日志里出现大量http 400错误的请求分析
- 使用Logstash分析纪录Nginx服务器访问及错误日志
- nginx日志错误分析
- logstash 分析nginx 错误日志
- elk 分析nginx访问和错误日志
- 使用 awstats 分析 Nginx 的访问日志
- 使用 awstats 分析 Nginx 的访问日志
- Nginx实用指南V1 (连载之五:日志处理awstats分析)
- 利用webalizer分析nginx日志
- Awstats分析nginx日志
- hive导入apache nginx等日志与分析
- 利用awstats分析nginx日志 简单配置
- nginx日志分析解决方案- Awstats
- Nginx日志分析--路径匹配篇
- SMS2003 推送软件包中的日志查看及安装错误代号1633分析
- 使用webalizer分析nginx 访问日志 推荐
- awstats 分析 Nginx 访问日志
- 用SED+AWK来分析NGINX日志!
- 使用 awstats 分析 Nginx 的访问日志
- 用Awstats对Nginx日志进行分析