国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Nginx > 正文

重啟或殺掉Nginx進程后丟失nginx.pid的解決辦法

2024-08-30 12:27:09
字體:
來源:轉載
供稿:網友

安裝SSL證書時,強行殺掉了Nginx的進程,就再也沒起來:

Restarting nginx daemon: nginxcat: /usr/local/nginx/logs/nginx.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec … or kill -l [sigspec]
nginx not running.

原因分析:
nginx.pid丟掉了

如何找回:

代碼如下:
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)

運行命令:

代碼如下:
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/vhost/Vevb.com.conf

此時,nginx已可以正常啟動了。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 蕲春县| 黄石市| 安乡县| 开鲁县| 古蔺县| 革吉县| 同仁县| 永胜县| 柳林县| 滕州市| 剑阁县| 舟山市| 安图县| 台北市| 西吉县| 湾仔区| 合作市| 马关县| 大同市| 洛川县| 郎溪县| 宜兰县| 即墨市| 石屏县| 青田县| 明溪县| 方城县| 华坪县| 石景山区| 德清县| 沂水县| 乳山市| 杨浦区| 景德镇市| 江陵县| 大宁县| 聊城市| 兴业县| 通海县| 高雄市| 那曲县|