首页 > 其他 > 详细

nginx: [error] invalid PID number "" in "/run/nginx.pid"

时间:2020-01-07 19:16:05      阅读:76      评论:0      收藏:0      [点我收藏+]

在重启云主机(系统)之后,执行 nginx -t 是OK的,然而在执行 nginx -s reload 的时候报错

nginx: [error] invalid PID number “” in “/run/nginx.pid”

经过查找,找到http://www.cnblogs.com/yuqianwen/p/4285686.html

需要先执行

nginx -c /etc/nginx/nginx.conf

nginx.conf文件的路径可以从nginx -t的返回中找到。

nginx -s reload

nginx: [error] invalid PID number "" in "/run/nginx.pid"

原文:https://www.cnblogs.com/smallleiit/p/12163069.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!