中国真实偷乱视频,东京道一本热中文字幕,久久精品国产99国产精品亚洲,欧美激情一区二区三区在线
標(biāo)題:
[分享]
解決錯誤 Stopping nginx: nginx: [error] invalid PID number
[打印本頁]
作者:
yux82
時間:
2015-4-21 09:21
標(biāo)題:
解決錯誤 Stopping nginx: nginx: [error] invalid PID number
本帖最后由 yux82 于 2015-4-21 09:22 編輯
前幾天忘記什么原因kill 掉80端口nginx 導(dǎo)致出現(xiàn)這個錯誤,新建站點變成了 404 Not Found nginx/1.2.9 重啟nginx后錯誤如下
Stopping nginx: nginx: [error] invalid PID number "" in "/www/wdlinux/nginx/logs/nginx.pid"
[ OK ]
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
[FAILED]
復(fù)制代碼
查了點資料,有文章上說可能是nginx.pid丟失了,于是 cat /www/wdlinux/nginx/logs/nginx.pid,發(fā)現(xiàn)是空的,無內(nèi)容,其實nginx.pid 中的內(nèi)容就是進(jìn)程id
然后 netstat -ntpl
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3673/nginx
看到nginx 進(jìn)程id 是3673
vi /www/wdlinux/nginx/logs/nginx.pid 編輯 3673 保存退出
重啟 service nginxd restart 成功
本人也是個linux 初學(xué)的小菜鳥,以上方法有什么不對的地方請大家指正,謝謝
歡迎光臨 WDlinux官方論壇 (http://ahbydz.com/bbs/)
Powered by Discuz! 7.2