zoukankan      html  css  js  c++  java
  • nginx 错误日志分析

    502

    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超过了最大的执行时间

  • 相关阅读:
    七牛云的 python sdk 是如何 批量删除资源的
    mysql 主从复制
    django3上线部署踩的坑
    基于linux在线预览
    数据库2
    数据库3
    安装 webstorm--->vue
    Django基础1
    pymysql基础
    前段之jQuery
  • 原文地址:https://www.cnblogs.com/terryguan/p/6603577.html
Copyright © 2011-2022 走看看