VPS侦探论坛

 找回密码
 注册
查看: 4758|回复: 6

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

[复制链接]
发表于 2016-8-23 15:29:40 | 显示全部楼层 |阅读模式

最近基本上每天都是只有下午差不多1~5点出现502,然后就恢复正常?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-8-23 15:32:13 | 显示全部楼层


Centos 7系统,试用systemctl php-fpm status会显示Unknown operation 'php-fpm'.然后刚刚试了下重新安装lnmp1.3会恢复正常,但是在完成安装后会数据库PHPAdminMySQL无法登录!!!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-8-23 17:16:27 | 显示全部楼层

还有就是访问主机IP正常,虚拟主机的貌似就不行了???
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-8-23 20:28:59 | 显示全部楼层

回复 2# 的帖子




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

建议按置顶帖 502 排查方法开慢日志看看502发生时段的日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-8-24 15:07:05 | 显示全部楼层

  1. Stoping LNMP...
  2. Stoping nginx... nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
  3. failed. Use force-quit
  4. Gracefully shutting down php-fpm . done
  5. Shutting down MySQL. SUCCESS!
  6. Starting LNMP...
  7. Starting nginx... nginx (pid 6507 6506 6505) already running.
  8. Starting php-fpm Zend Guard Loader requires Zend Engine API version 220090626.
  9. The Zend Engine API version 220131226 which is installed, is newer.
  10. Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.

  11. [24-Aug-2016 16:05:29] ALERT: [pool www] pm.min_spare_servers(12) and pm.max_spare_servers(25) cannot be greater than pm.max_children(20)
  12. [24-Aug-2016 16:05:29] ERROR: failed to post process the configuration
  13. [24-Aug-2016 16:05:29] ERROR: FPM initialization failed
  14. failed
  15. Starting MySQL.. SUCCESS!
复制代码

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

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2016-8-24 15:07:23 | 显示全部楼层

回复 4# 的帖子


军哥!!!我发现Ngnix总是会停止运行?
发表于 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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-25 13:57 , Processed in 0.034273 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表