lnmp restart启动nginx失败。。。
提示如下:Stoping LNMP...Stoping nginx... nginx: 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-fpmdone
Starting php-fpmdone
于是乎我就lnmp nginx stop,提示如下
Stoping nginx... nginx: 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,提示如下:
# ps aux | grep nginx
root 51660.00.1 103304 892 pts/0 S+ 22:20 0:00 grep nginx
军哥这个怎么解。。 nginx非正常关闭后pid文件没被删除,你可以 rm -f /usr/local/nginx/logs/nginx.pid
后再看一下
回复 2# 的帖子
军哥你好,我是通过一下方法解决的:#/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
# /usr/local/nginx/sbin/nginx -s reload
但是我不懂这是什么意思。。
回复 3# 的帖子
上面两条命令就于 /etc/init.d/nginx start和 /etc/init.d/nginx reload 是一样的
页:
[1]