码迷,mamicode.com
首页 > Web开发 > 详细

nginx-502错误,老是提示busy.优化php-fpm如下

时间:2016-10-25 09:28:58      阅读:272      评论:0      收藏:0      [点我收藏+]

标签:rmi   Owner   cgi   erro   设置   nginx   pid   127.0.0.1   mina   

[global]
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = notice

[www]
listen = /tmp/php-cgi.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
;pm.max_children = 60

;根据内存来设置,每个children大概30M内存,200个大概5.8G多内存
pm.max_children = 200
pm.max_requests=1024

;pm.start_servers= min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 115
pm.min_spare_servers = 30
pm.max_spare_servers = 200
request_terminate_timeout = 100
request_slowlog_timeout = 5
slowlog = /usr/local/php/var/log/slow.log

nginx-502错误,老是提示busy.优化php-fpm如下

标签:rmi   Owner   cgi   erro   设置   nginx   pid   127.0.0.1   mina   

原文地址:http://www.cnblogs.com/showker/p/5995369.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!