VPS侦探论坛
标题:
lnmp restart启动nginx失败。。。
[打印本页]
作者:
609926202
时间:
2017-5-8 22:21
标题:
lnmp restart启动nginx失败。。。
提示如下:Stoping LNMP...
Stoping nginx... nginx: [alert] kill(6036, 15) failed (3: No such process)
failed. Use force-quit
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm . done
Gracefully shutting down php-fpm . done
Starting LNMP...
Starting nginx... nginx (pid ) already running.
Starting MySQL.. SUCCESS!
Starting php-fpm done
Starting php-fpm done
于是乎我就lnmp nginx stop,提示如下
Stoping nginx... nginx: [alert] kill(6036, 15) failed (3: No such process)
failed. Use force-quit
再然后我lnmp nginx start,提示如下:
Starting nginx... nginx (pid ) already running.
然后我ps aux | grep nginx,提示如下:
[root@localhost vhost]# ps aux | grep nginx
root 5166 0.0 0.1 103304 892 pts/0 S+ 22:20 0:00 grep nginx
军哥这个怎么解。。
作者:
licess
时间:
2017-5-9 09:04
nginx非正常关闭后pid文件没被删除,你可以 rm -f /usr/local/nginx/logs/nginx.pid
后再看一下
作者:
609926202
时间:
2017-5-10 11:47
标题:
回复 2# 的帖子
军哥你好,我是通过一下方法解决的:
[root@superz ~]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@superz ~]# /usr/local/nginx/sbin/nginx -s reload
但是我不懂这是什么意思。。
作者:
licess
时间:
2017-5-10 20:30
标题:
回复 3# 的帖子
上面两条命令就于 /etc/init.d/nginx start
和 /etc/init.d/nginx reload 是一样的
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4