请问一下,我的VPS最近怎么总是会在下午的一个时间段内出现502?
最近基本上每天都是只有下午差不多1~5点出现502,然后就恢复正常? Centos 7系统,试用systemctl php-fpm status会显示Unknown operation 'php-fpm'.然后刚刚试了下重新安装lnmp1.3会恢复正常,但是在完成安装后会数据库PHPAdminMySQL无法登录!!!还有就是访问主机IP正常,虚拟主机的貌似就不行了???
回复 2# 的帖子
状态管理:https://lnmp.org/faq/lnmp-status-manager.html建议按置顶帖 502 排查方法开慢日志看看502发生时段的日志 Stoping LNMP...
Stoping nginx... nginx: open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
failed. Use force-quit
Gracefully shutting down php-fpm . done
Shutting down MySQL. SUCCESS!
Starting LNMP...
Starting nginx... nginx (pid 6507 6506 6505) already running.
Starting php-fpm Zend Guard Loader requires Zend Engine API version 220090626.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.
ALERT: pm.min_spare_servers(12) and pm.max_spare_servers(25) cannot be greater than pm.max_children(20)
ERROR: failed to post process the configuration
ERROR: FPM initialization failed
failed
Starting MySQL.. SUCCESS!
军哥!!!我发现Ngnix总是会停止运行?
回复 4# 的帖子
军哥!!!我发现Ngnix总是会停止运行?回复 5# 的帖子
要是nginx挂了就不会显示502,你就只能看到浏览器的提示信息只按你上面restart的信息,你php是5.3,而你安装的确是php 5.6的zend guard loader
同时你调整php-fpm中的参数有问题,上面也有提示pm.min_spare_servers和pm.max_spare_servers的值不能大于pm.max_children
页:
[1]