VPS侦探论坛

 找回密码
 注册
查看: 3680|回复: 3

lnmp restart启动nginx失败。。。

[复制链接]
发表于 2017-5-8 22:21:02 | 显示全部楼层 |阅读模式

提示如下: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


军哥这个怎么解。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-5-9 09:04:50 | 显示全部楼层


nginx非正常关闭后pid文件没被删除,你可以 rm -f /usr/local/nginx/logs/nginx.pid
后再看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-5-10 11:47:21 | 显示全部楼层

回复 2# 的帖子


军哥你好,我是通过一下方法解决的:

[root@superz ~]#  /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

[root@superz ~]# /usr/local/nginx/sbin/nginx -s reload

但是我不懂这是什么意思。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-5-10 20:30:37 | 显示全部楼层

回复 3# 的帖子




上面两条命令就于 /etc/init.d/nginx start
和 /etc/init.d/nginx reload 是一样的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-26 05:24 , Processed in 0.025987 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表