hncstql 发表于 2016-8-23 15:29:40

请问一下,我的VPS最近怎么总是会在下午的一个时间段内出现502?

最近基本上每天都是只有下午差不多1~5点出现502,然后就恢复正常?

hncstql 发表于 2016-8-23 15:32:13

Centos 7系统,试用systemctl php-fpm status会显示Unknown operation 'php-fpm'.然后刚刚试了下重新安装lnmp1.3会恢复正常,但是在完成安装后会数据库PHPAdminMySQL无法登录!!!

hncstql 发表于 2016-8-23 17:16:27

还有就是访问主机IP正常,虚拟主机的貌似就不行了???

licess 发表于 2016-8-23 20:28:59

回复 2# 的帖子

状态管理:https://lnmp.org/faq/lnmp-status-manager.html

建议按置顶帖 502 排查方法开慢日志看看502发生时段的日志

hncstql 发表于 2016-8-24 15:07:05

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总是会停止运行?

hncstql 发表于 2016-8-24 15:07:23

回复 4# 的帖子

军哥!!!我发现Ngnix总是会停止运行?

licess 发表于 2016-8-24 16:32:23

回复 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]
查看完整版本: 请问一下,我的VPS最近怎么总是会在下午的一个时间段内出现502?