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

当重启Nginx的时候,出现了

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

解决办法:

需要我们指定一个特定的nginx加载配置文件。

sudo nginx -c /etc/nginx/nginx.conf

然后重启

nginx -s reload

 

posted @ 2017-06-22 16:09  ontheway1215  阅读(505)  评论(0编辑  收藏  举报