解决 nginx: [error] open() /usr/local/nginx/logs/nginx.pid failed 错误

Posted Argo Zhang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 nginx: [error] open() /usr/local/nginx/logs/nginx.pid failed 错误相关的知识,希望对你有一定的参考价值。

现象

nginx: [error] open() /usr/local/nginx/logs/nginx.pid failed (2: No such file or directory)

解决办法

# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
./nginx -s reload

以上是关于解决 nginx: [error] open() /usr/local/nginx/logs/nginx.pid failed 错误的主要内容,如果未能解决你的问题,请参考以下文章

解决 nginx: [error] open() /usr/local/nginx/logs/nginx.pid failed 错误

解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid

解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid

解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误

解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误

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