执行 lnmp restart 后出现 502 Bad GatewayStoping , 提示 php-fpm is not running
执行 lnmp restart然后出现Stoping nginx...done
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?
Starting LNMP...
Starting nginx...done
Starting MySQL.. SUCCESS!
Starting php-fpm ALERT: pm.start_servers(2) must not be less than pm.min_spare_servers(6) and not greater than pm.max_spare_servers(12)
ERROR: failed to post process the configuration
之后网站出现 502 Bad GatewayStoping无法访问。。。 你自己修改了php-fpm.conf 中的配置,但是你修改的有问题,pm.start_servers的值必须是大于或等于pm.min_spare_servers的,上面已经明确给你提示了 多谢军哥,不过我真的什么没有动 只是执行 lnmp restart就变成这样了。
我进入后把
pm.start_servers = 2
pm.min_spare_servers = 6
改成
pm.start_servers = 8
pm.min_spare_servers = 6
再执行 lnmp restart ,就恢复正常了。
页:
[1]