VPS侦探论坛

 找回密码
 注册
查看: 4998|回复: 1

reboot重启VPS,没几次能顺利启动环境的,这次又报这个错

[复制链接]
发表于 2015-1-25 01:26:17 | 显示全部楼层 |阅读模式

  1. root@debian:~# /root/lnmp reload
  2. =========================================================================
  3. Manager for LNMP V1.1  ,  Written by Licess
  4. =========================================================================
  5. LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
  6. This script is a tool to Manage status of lnmp
  7. For more information please visit http://www.lnmp.org

  8. Usage: /root/lnmp {start|stop|reload|restart|kill|status}
  9. =========================================================================
  10. Reload LNMP...
  11. Reload service nginx... nginx is not running, can't reload.
  12. /root/lnmp:行49: /etc/init.d/php-fpm: 没有那个文件或目录
  13. Reloading service MySQL.
  14. root@debian:~# /root/lnmp status
  15. =========================================================================
  16. Manager for LNMP V1.1  ,  Written by Licess
  17. =========================================================================
  18. LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
  19. This script is a tool to Manage status of lnmp
  20. For more information please visit http://www.lnmp.org

  21. Usage: /root/lnmp {start|stop|reload|restart|kill|status}
  22. =========================================================================
  23. nginx is stopped
  24. php-fpm is stop!
  25. MySQL running (2125).
  26. root@debian:~# /etc/init.d/nginx start
  27. Starting nginx...  done
复制代码



直接启动NGINX后,打开网页显示502错误,郁闷死了

求帮忙啊
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-1-25 09:11:05 | 显示全部楼层


/etc/init.d/php-fpm 可能被删除了,上面提示这个文件不存在,这个文件不存在就启动不了php-fpm,肯定会报502

根据php版本的不同,文件会不一样
php 5.2:
  1. wget -c http://soft.vpser.net/lnmp/ext/init.d.php-fpm5.2 -O /etc/init.d/php-fpm
  2. chmod +x /etc/init.d/php-fpm
复制代码


php5.3及以上,先到php5.*.*的目录里再
  1. cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
  2. chmod +x /etc/init.d/php-fpm
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-16 05:54 , Processed in 0.025197 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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