国产探花免费观看_亚洲丰满少妇自慰呻吟_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已可以正常啟動了。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 沐川县| 荣昌县| 子长县| 义乌市| 东山县| 定南县| 汤阴县| 阳谷县| 海淀区| 赤峰市| 应用必备| 湖州市| 伊金霍洛旗| 丹巴县| 高邮市| 天峻县| 确山县| 清涧县| 广平县| 安化县| 宣汉县| 凤冈县| 固始县| 普兰店市| 根河市| 屯昌县| 沙洋县| 嘉善县| 荔浦县| 伊宁市| 许昌县| 应用必备| 罗山县| 万宁市| 汉川市| 清流县| 饶阳县| 镇远县| 石狮市| 墨竹工卡县| 娱乐|