我在ec2免费层实例上使用nginx和php5-fpm运行wordpress应用程序。由于
,应用程序显示错误[02-Dec-2016 06:35:11] NOTICE: Terminating ...
[02-Dec-2016 06:35:11] NOTICE: exiting, bye-bye!
[02-Dec-2016 06:35:11] NOTICE: fpm is running, pid 13665
[02-Dec-2016 06:35:11] NOTICE: ready to handle connections
[02-Dec-2016 06:35:11] NOTICE: systemd monitor interval set to 10000ms
[02-Dec-2016 06:35:16] WARNING: [pool www] server reached pm.max_children setting (10), consider raising it
我的php-fpm配置(/etc/php5/fpm/pool.d/www.conf) 是:
pm.max_children = 10
pm.start_servers = 5
pm.min_spare_servers = 2
pm.max_spare_servers = 5
Nginx日志:
[error] 13607#0: *37345 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 191.96.249.80, server: 127.0.0.1, request: "POST /xmlrpc.php HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
我必须每次都重启php-fpm以使应用程序运行。我找到了一些同样问题的解决方案,但没有一个能帮到我们。