“/usr/local/var/run/nginx.pid” failed

问题:nginx启动的时候会报丢失pid的错误

nginx: [error] open() “/usr/local/var/run/nginx.pid” failed 

解决方案:

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

sudo nginx -s reload

posted @ 2016-07-13 09:17  lijinbao  阅读(439)  评论(0编辑  收藏  举报