恒度哥 2021-07-30 09:45 采纳率: 100%
浏览 124
已结题

centos 7 nginx 无法重启 reload, 主程序被手工kill掉,重启失败。且 现在nginx 正在运行。

报错如下:
[root@webpublish nginx]# nginx -s reload
nginx: [error] invalid PID number "" in "/run/nginx.pid"
这个文件里面是空的,没有PID。

ps -aux |grep nginx
root      4148  0.0  0.0 112812   972 pts/0    S+   09:13   0:00 grep --color=auto nginx
nginx    30028  0.0  0.0 123128  6612 ?        S    Jul29   0:03 nginx: worker process
nginx    30029  0.0  0.0 123128  6784 ?        S    Jul29   0:03 nginx: worker process
nginx    30030  0.0  0.0 123128  6808 ?        S    Jul29   0:06 nginx: worker process
nginx    30031  0.0  0.0 123128  6780 ?        S    Jul29   0:08 nginx: worker process
nginx    30032  0.0  0.0 123128  6820 ?        S    Jul29   0:11 nginx: worker process
nginx    30033  0.0  0.0 133468 17148 ?        S    Jul29   0:20 nginx: worker process
nginx    30034  0.0  0.0 123224  6888 ?        S    Jul29   0:20 nginx: worker process
nginx    30035  0.5  0.0 123420  7120 ?        S    Jul29   5:15 nginx: worker process

  • 写回答

1条回答 默认 最新

  • 关注

    先使用命令status查看一下他的运行状态 报的什么错 然后再确定下进程和端口是否被杀掉

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 7月30日
  • 已采纳回答 7月30日
  • 创建了问题 7月30日

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效