疯狂痴呆 发表于 2015-1-25 01:26:17

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

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

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

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
nginx is stopped
php-fpm is stop!
MySQL running (2125).
root@debian:~# /etc/init.d/nginx start
Starting nginx...done


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

求帮忙啊

licess 发表于 2015-1-25 09:11:05

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

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

php5.3及以上,先到php5.*.*的目录里再
cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm
页: [1]
查看完整版本: reboot重启VPS,没几次能顺利启动环境的,这次又报这个错