nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"

在ubunru16.04上重信更改了nginx的配置后,重新reload包一下的错误

nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"

解决方案

 sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
sudo /usr/local/nginx/sbin/nginx -s reload
posted @ 2018-02-28 11:55  木易森林  阅读(4118)  评论(0编辑  收藏  举报