[root@localhost conf]# ../sbin/nginx -c nginx.conf
nginx: [emerg] open() "/usr/common/nginx/nginx.conf" failed (2: No such file or directory)
换别的目录启动:
[root@localhost nginx]# ./sbin/nginx -c conf/nginx.conf
本文记录了在启动Nginx时遇到的配置文件路径错误问题,具体表现为尝试加载指定目录下的nginx.conf文件失败。文章详细描述了错误信息,并提供了解决方案,即通过更改启动命令中的配置文件路径来成功启动Nginx。
[root@localhost conf]# ../sbin/nginx -c nginx.conf
nginx: [emerg] open() "/usr/common/nginx/nginx.conf" failed (2: No such file or directory)
换别的目录启动:
[root@localhost nginx]# ./sbin/nginx -c conf/nginx.conf
1万+
2194
6万+
3238
3299
1526
868

被折叠的 条评论
为什么被折叠?