lnmp的服务不能正常启动

linux cooljun 141℃ 0评论
[root@279155 ~]# sh lnmp restart
=========================================================================
Manager for LNMP V0.8  ,  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}
=========================================================================
Stoping LNMP…
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec … or kill -l [sigspec]
Nginx program is stop
PHP-FPM program is not runing!
MySQL program is not runing!
Starting LNMP…
Nginx is runing!
[root@279155 ~]#

   有点晕乎了,mysql和php-fpm 这么没起来呢,手动/etc/init.d/mysql start  /etc/init.d/php-fpm start  都能启动,就是网页打不开,最后查看日志文件

2012/03/09 21:34:32 [error] 7467#0: invalid PID number “” in “/usr/local/nginx/logs/nginx.pid”
2012/03/09 21:35:36 [notice] 7549#0: signal process started
2012/03/09 21:35:36 [error] 7549#0: invalid PID number “” in “/usr/local/nginx/logs/nginx.pid”
2012/03/09 22:36:29 [notice] 11352#0: signal process started
2012/03/09 22:36:29 [error] 11352#0: invalid PID number “” in “/usr/local/nginx/logs/nginx.pid”

  貌似这个文件有非法的pid,直接删除,在重启lnmp ,这个时候发现所有的lnmp的服务都可以自动重启了,赶紧打开浏览器,终于网站可以打开了。。。

转载请注明:cooljun小站 » lnmp的服务不能正常启动

如果你觉得这篇文章对你有帮助,请支持我继续更新网站 !捐赠本站
喜欢 (0)or分享 (0)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址