解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误​

作者: linux 发布时间: 2017-05-26 浏览: 1394 次 编辑

重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误解决方法:

解决方案:

sudo nginx -c /usr/local/etc/nginx/nginx.conf
sudo nginx -s reload
标签: linux nignx