Nginx报错:nginx: [emerg] open() “/usr/local/nginx/../conf/nginx.conf“ failed (2: No such file or direc

Posted Dontla

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx报错:nginx: [emerg] open() “/usr/local/nginx/../conf/nginx.conf“ failed (2: No such file or direc相关的知识,希望对你有一定的参考价值。

[root@ubuntu /usr/local/nginx/sbin]6# ./nginx -s reload
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

解决办法:

重新以这种方式加载nginx.conf

[root@ubuntu /usr/local/nginx/sbin]9# ./nginx -c /usr/local/nginx/conf/nginx.conf

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

以上是关于Nginx报错:nginx: [emerg] open() “/usr/local/nginx/../conf/nginx.conf“ failed (2: No such file or direc的主要内容,如果未能解决你的问题,请参考以下文章

nginx启动报错!~~帮忙看看

nginx: [emerg] unknown directive “ ” in /usr/local/nginx/nginx.conf.conf:xx报错处理

nginx 启动报错 nginx: [emerg] getgrnam("root") failed

在window中nginx安装腾讯云ssl报错nginx: [emerg] cannot load certificate

报错锦集二“nginx: [emerg] unknown directive “set_real_ip_from“ in /usr/local/nginx/conf/nginx.conf:50 ngi

哎呦报错啦怎么办?nginx: [emerg] “server“ directive is not allowed here in /usr/local/nginx/conf/nginx.conf53