nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
Posted 毛会懂
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)相关的知识,希望对你有一定的参考价值。
nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
启动Nginx出现这个错误
nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
- 1
解决方法:找到你的nginx.conf的文件夹目录,然后运行这个 nginx -c /usr/local/etc/nginx/nginx.conf
命令,
再运行nginx -s reload
,就可以了
以上是关于nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)的主要内容,如果未能解决你的问题,请参考以下文章
解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
解决Nginx: [error] open() Nginx.pid
Nginx启动报错: could not open error log file: open() &q
解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
解决 nginx: [error] open() /usr/local/nginx/logs/nginx.pid failed 错误