- 解决: 服务没有启动 使用start启动服务,因为没有start而直接使用stop或者reload报错这个问题;
- 如果方法一没有解决,使用方法二:-C 指定配置文件
nginx.conf
或者weblua.conf
相关文章
- 【防坑指南】nginx重启后出现[error] open() “/usr/local/var/run/nginx/nginx.pid” failed
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
- 启动nginx出错:open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- 重启虚拟机后,再次重启nginx会报错:[emerg] open() "/var/run/nginx/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)
- nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)
- nginx报错 [error] open() “/usr/local/var/run/openresty.pid” failed (2: No such file or directory)