nginx 错误日志出现大量 104: Connection reset by peer

[code language=”javascript”]2016/03/15 11:05:29 [error] 28168#0: *295049 readv() failed (104: Connection reset by peer) while reading upstream, client: client_ip, server: www.xxx.com, request: “GET /fdsfd/fdsfdsf/fdsfds.html HTTP/1.1”, upstream: “fastcgi://192.168.1.2:9000″, host: “www.xxx.com”
[/code]

如果你在使用PHP-fpm ,将request_terminate_timeout 修改成 600

request_terminate_timeout = 600

request_terminate_timeout 

设置单个请求的超时中止时间。该选项可能会对 php.ini 设置中的 ‘max_execution_time’ 因为某些特殊原因没有中止运行的脚本有用。设置为 ‘0’ 表示 ‘Off’。可用单位:s(秒),m(分),h(小时)或者 d(天)。默认单位:s(秒)。默认值:0(关闭)。

nginx 错误日志出现大量 104: Connection reset by peer

2016/03/15 11:05:29 [error] 28168#0: *295049 readv() failed (104: Connection reset by peer) while reading upstream, client: client_ip, server: www.xxx.com, request: "GET /fdsfd/fdsfdsf/fdsfds.html HTTP/1.1", upstream: "fastcgi://192.168.1.2:9000", host: “www.xxx.com"

如果你在使用PHP-fpm ,将request_terminate_timeout 修改成 600

request_terminate_timeout = 600
重启php-fpm 即可

request_terminate_timeout 解释:

设置单个请求的超时中止时间。该选项可能会对 php.ini 设置中的 'max_execution_time' 因为某些特殊原因没有中止运行的脚本有用。设置为 '0' 表示 'Off'。可用单位:s(秒),m(分),h(小时)或者 d(天)。默认单位:s(秒)。默认值:0(关闭)。

nginx 错误日志出现大量 104: Connection reset by peer

[code language=”php”]$cursor$cursor$2016/03/15 11:05:29 [error] 28168#0: *295049 readv() failed (104: Connection reset by peer) while reading upstream, client: client_ip, server: www.xxx.com, request: “GET /fdsfd/fdsfdsf/fdsfds.html HTTP/1.1”, upstream: “fastcgi://192.168.1.2:9000”, host: “www.xxx.com”016/03/15 11:05:29 [error] 28168#0: *295049 readv() failed (104: Connection reset by peer) while reading upstream, client: client_ip, server: www.xxx.com, request: “GET /fdsfd/fdsfdsf/fdsfds.html HTTP/1.1”, upstream: “fastcgi://192.168.1.2:9000″, host: “www.xxx.com”
[/code]

如果你在使用PHP-fpm ,将request_terminate_timeout 修改成 600

request_terminate_timeout = 600
重启php-fpm 即可

request_terminate_timeout 解释:

设置单个请求的超时中止时间。该选项可能会对 php.ini 设置中的 'max_execution_time' 因为某些特殊原因没有中止运行的脚本有用。设置为 '0' 表示 'Off'。可用单位:s(秒),m(分),h(小时)或者 d(天)。默认单位:s(秒)。默认值:0(关闭)。

nginx 错误日志出现大量 104: Connection reset by peer

[code language=”php”]$cursor$cursor$cursor$cursor$2016/03/15 11:05:29 [error] 28168#0: *295049 readv() failed (104: Connection reset by peer) while reading upstream, client: client_ip, server: www.xxx.com, request: “GET /fdsfd/fdsfdsf/fdsfds.html HTTP/1.1”, upstream: “fastcgi://192.168.1.2:9000”, host: “www.xxx.com”016/03/15 11:05:29 [error] 28168#0: *295049 readv() failed (104: Connection reset by peer) while reading upstream, client: client_ip, server: www.xxx.com, request: “GET /fdsfd/fdsfdsf/fdsfds.html HTTP/1.1”, upstream: “fastcgi://192.168.1.2:9000″, host: “www.xxx.com”
016/03/15 11:05:29 [error] 28168#0: *295049 readv() failed (104: Connection reset by peer) while reading upstream, client: client_ip, server: www.xxx.com, request: “GET /fdsfd/fdsfdsf/fdsfds.html HTTP/1.1”, upstream: “fastcgi://192.168.1.2:9000”, host: “www.xxx.com”016/03/15 11:05:29 [error] 28168#0: *295049 readv() failed (104: Connection reset by peer) while reading upstream, client: client_ip, server: www.xxx.com, request: “GET /fdsfd/fdsfdsf/fdsfds.html HTTP/1.1”, upstream: “fastcgi://192.168.1.2:9000″, host: “www.xxx.com”
[/code]

 

如果你在使用PHP-fpm ,将request_terminate_timeout 修改成 600

request_terminate_timeout = 600
重启php-fpm 即可

request_terminate_timeout 解释:

 

[code language=”plain”]设置单个请求的超时中止时间。该选项可能会对 php.ini 设置中的 ‘max_execution_time’ 因为某些特殊原因没有中止运行的脚本有用。设置为 ‘0’ 表示 ‘Off’。
可用单位:s(秒),m(分),h(小时)或者 d(天)。默认单位:s(秒)。默认值:0(关闭)。[/code]