全球主机交流论坛

标题: 用军哥的Lnmp0.4 忽然无法访问网站, 请问是怎么回事? [打印本页]

作者: GoTop    时间: 2011-6-26 10:45
标题: 用军哥的Lnmp0.4 忽然无法访问网站, 请问是怎么回事?
重启的时候, 会出现如下提示:

出现错误提示/root/lnmp: line 67: kill: (2651) - No such process
  1. [root@111 ~]# /root/lnmp restart
  2. =========================================================================
  3. Manager for LNMP V0.4  ,  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 Nginx configure...
  12. the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
  13. configuration file /usr/local/nginx/conf/nginx.conf test is successful
  14. /root/lnmp: line 67: kill: (2651) - No such process
  15. Nginx program is reloding!
  16. Shutting down MySQL. SUCCESS!
  17. Starting MySQL. SUCCESS!
  18. Shutting down php_fpm . done
  19. Starting php_fpm  done
复制代码
在root/lnmp 文件中有如下代码, 其中67行是kill -HUP `cat $PIDFILE`

根据提示是这句出错, 请问这句是什么意思呢?

  1. PIDFILE=/usr/local/nginx/logs/nginx.pid

  2. 省略n行

  3. function_restart()
  4. {
  5.     printf "Reload LNMP...\n"
  6.     printf "Reload Nginx configure...\n"
  7.     $NGINXDAEMON -t
  8.     kill -HUP `cat $PIDFILE`
  9.     printf "Nginx program is reloding!\n"
  10.     /etc/init.d/mysql restart
  11.     /usr/local/php/sbin/php-fpm restart
  12. }
复制代码

[ 本帖最后由 GoTop 于 2011-6-26 10:56 编辑 ]
作者: 堕落kiss    时间: 2011-6-26 10:46
/root/lnmp: line 67: kill: (2651) - No such process
作者: neolee    时间: 2011-6-26 10:57
看看67行什么命令吧
作者: lemss    时间: 2011-6-26 11:54
啥提示
作者: GoTop    时间: 2011-6-26 12:18
原帖由 neolee 于 2011-6-26 10:57 发表
看看67行什么命令吧


加在帖子后面了
作者: Poison    时间: 2011-6-26 12:21
killall -9 nginx
作者: Poison    时间: 2011-6-26 12:21
kill: (2651) - No such process

kill进程的时候 没有2651这个进程
作者: GoTop    时间: 2011-6-26 12:42
原帖由 ssh 于 2011-6-26 12:21 发表
killall -9 nginx


恩, 谢谢, 我重启VPS后就可以了
作者: ericls    时间: 2011-6-26 13:00
原帖由 resurgence 于 2011-6-26 12:59 发表
进程被卡死.结束不掉就这样了

学习了
作者: GoTop    时间: 2011-6-27 14:16
原帖由 resurgence 于 2011-6-26 12:59 发表
进程被卡死.结束不掉就这样了


恩, 多谢指教
作者: yeasiz    时间: 2011-6-27 14:24
重启就行了~ 我之前也是这样的~ 进程傻逼了~
作者: 我是小白    时间: 2011-6-27 14:55
僵尸




欢迎光临 全球主机交流论坛 (https://www.iloc.eu.org/) Powered by Discuz! X3.4