最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
nginx重启失败提示nginx.pid无法找到
时间:2022-06-30 18:49:41 编辑:袖梨 来源:一聚教程网
重启nginx: /usr/local/nginx/sbin/nginx -s reload
报错代码:nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory) (如下图)
1. 重新运行一下/usr/local/nginx/sbin/nginx
2. 重启nginx:/usr/local/nginx/sbin/nginx -s reload
上面办法有些朋友可以解决但大多数据解决不了,于是接着google搜索
看一英文的
issued a nginx -s stop and after that I got this error when trying to reload it.
[error]: invalid PID number "" in "/var/run/nginx.pid"
That /var/run/nginx/pid file is empty atm.
What do I need to do to fix it?
nginx -s reload is only used to tell a running nginx process to reload its config. After a stop, you don't have a running nginx process to send a signal to. Just run nginx (possibly with a -c /path/to/config/file)
于是我用了这方法,也就是
nginx -c /path/to/config/file) //在我机器上是这样的/alidata/server/nginx/sbin/nginx -c /alidata/server/nginx/conf/nginx.conf
相关文章
- 女神漫画免费在线阅读入口-女神漫画全集免费畅读 02-15
- 绝区零官方云游戏入口在哪-绝区零云游戏在线畅玩入口 02-15
- 智慧团建手机登录入口在哪进-网上共青团智慧团建官网入口 02-15
- 歪歪漫画秋蝉官方入口-秋蝉漫画免费下拉式阅读直达链接 02-15
- 歪漫科技无删减漫画最新版本下载-搜索到的不一定能看官方入口 02-15
- 企查查企业查询官网直达-企查查网页版一键查询 02-15
