码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-10-10 00:08:06      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:pid   pre   解决   ror   描述   load   路径   需要   code   

nginx重启报错:nginx: [error] invalid PID number "" in "/run/nginx.pid"

问题描述:执行 nginx -t 是OK的,然而在执行 nginx -s reload 的时候报错

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

解决办法

    需要先执行

    nginx -c /etc/nginx/nginx.conf

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

    nginx -s reload

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

标签:pid   pre   解决   ror   描述   load   路径   需要   code   

原文地址:https://blog.51cto.com/13293070/2440960

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!