nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)(代码片
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)(代码片相关的知识,希望对你有一定的参考价值。
?????????proc ?????? ?????? ?????? ?????? style use nginx?????? directory
?????????nginx??????????????????????????????????????????
[[email protected] etc]# nginx -c /var/run/nginx/nginx.pid nginx: [emerg] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
???????????????
[[email protected] etc]# nginx -c /etc/nginx/nginx.conf
??????????????????????????????
1???????????????????????????cd /var/run ??????????????????nginx??????????????????????????????????????????????????????
2???????????? nginx.conf?????????????????????pid???????????????pid????????????????????????????????????
user root; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx/nginx.pid; events { worker_connections 1024; }
以上是关于nginx: [error] open() "/var/run/nginx/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 错误