nginx+php fpm日志报错信息
2016-03-30 11:42
501 查看
recv() failed (104:connect reset by peer) while reading response header from upstream的原因和解决方案
原因是 php-fpm进程数耗尽了,两个方案:
(1). 调整php-fpm.conf里面的pm.max_children,增大,不建议超过300
(2). php-fpm.conf里面打开每个对应池的slow日志,根据慢执行日志来优化php代码
原因是 php-fpm进程数耗尽了,两个方案:
(1). 调整php-fpm.conf里面的pm.max_children,增大,不建议超过300
(2). php-fpm.conf里面打开每个对应池的slow日志,根据慢执行日志来优化php代码
相关文章推荐
- Nginx-upstream负载均衡
- 1.Nginx的基本特性及编译安装
- Django + nginx + uwsgi配置和环境搭建(ubuntu)
- Nginx服务器入门
- 如何正确配置Nginx+PHP
- Nginx配置性能深度优化
- LNMP(Linux+nginx+MySQL+PHP)环境搭建
- nginx 开启压缩
- Mac Nginx
- Nginx rewrite route to index.html
- nginx+php搭建文件上传下载服务器
- Linux服务器mysql,nginx等自动停止的排查,以及解决方法
- Nginx+Django+Uwsgi架构部署
- Nginx 500错误总结
- Nginx 504错误总结
- Nginx中如何限制某个IP同一时间段的访问次数
- Nginx 503错误总结
- 安装Nginx+Lua开发环境
- Nginx 502错误总结
- nginx.conf配置参考