对于PHP引起的(104: Connection reset by peer) while reading response header from upstream错误解决方法

来源:互联网 发布:小火牛是什么软件 编辑:程序博客网 时间:2024/06/06 04:03

对于php引起的(104: Connection reset by peer) while reading response header from upstream,这个问题,在Linux生产服务器中,我的php版本是7.0,只需修改/usr/local/php/etc/php-fpm.d中的www.conf文件中request_terminate_timeou这个参数,只需将前面的;去掉,设置为:

request_terminate_timeout=0


然后保存重启php-fpm;


重启指令:

1、killall php-fpm

2、/etc/init.d/php-fpm


0 0
原创粉丝点击