全球主机交流论坛

标题: 服务器换内存后,就一直502,求解…… [打印本页]

作者: chimney    时间: 2013-3-10 12:42
标题: 服务器换内存后,就一直502,求解……
服务器装的是军哥的Lnmpa,昨天半夜忽然挂掉了,早上联系IDC,说点不亮,后来说是内存和电池坏了,帮我换了内存和主板上的电池。
服务器就一直处于502中。reboot一次,也米用,求指点……
作者: kwx    时间: 2013-3-10 12:43
内存和502有关吗?
作者: ybs885    时间: 2013-3-10 12:43
看LOG。看到底为什么NGINX是502

- -

活着重启lnmpa看提示啊。。。
作者: chimney    时间: 2013-3-10 12:58
ybs885 发表于 2013-3-10 12:43
看LOG。看到底为什么NGINX是502

- -

重启后这样提示,# /root/lnmpa restart
=========================================================================
Manager for LNMPA V0.9  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Nginx program is stop
(20014)Internal error: Error retrieving pid file logs/httpd.pid
Remove it before continuing if it is corrupted.
Shutting down MySQL..... SUCCESS!
MySQL program is stop
Starting LNMPA...
Nginx start successfully!
(20014)Internal error: Error retrieving pid file logs/httpd.pid
Remove it before continuing if it is corrupted.
Starting MySQL. SUCCESS!
MySQL start successfully!

但是我服务器没有logs/httpd.pid这个啊,根目录下没有logs这个目录
作者: ybs885    时间: 2013-3-10 13:01
一般是PID问题

http://blog.csdn.net/sg131971/article/details/7261085

或者看下
http://wyzws.iteye.com/blog/1555004


作者: chimney    时间: 2013-3-10 13:04
ybs885 发表于 2013-3-10 13:01
一般是PID问题

http://blog.csdn.net/sg131971/article/details/7261085

嗯,找到解决办法了,从别的服务器上下载了一个httpd.pid上传覆盖过来,就可以了,谢谢老兄
作者: ybs885    时间: 2013-3-10 13:51
chimney 发表于 2013-3-10 13:04
嗯,找到解决办法了,从别的服务器上下载了一个httpd.pid上传覆盖过来,就可以了,谢谢老兄 ...

额。。。我才初二。。。。
作者: chimney    时间: 2013-3-10 22:02
ybs885 发表于 2013-3-10 13:51
额。。。我才初二。。。。

年少有为啊




欢迎光临 全球主机交流论坛 (https://hostloc.9hanju.com/) Powered by Discuz! X3.4