天天看點

nginx服務異常造成網站通路不了

1、使用lsof -i:80查詢沒有監聽到端口。

2、重新開機或重新加載nginx都報這個錯誤。

[root@iZ62bem75i8Z vhosts]# /alidata/server/nginx-1.4.4/sbin/nginx -s reload

nginx: [alert] kill(1668, 1) failed (3: No such process)

3、按照下面的方法處理好了。

[root@iZ62bem75i8Z vhosts]# /alidata/server/nginx-1.4.4/sbin/nginx -c /alidata/server/nginx-1.4.4/conf/nginx.conf

[root@iZ62bem75i8Z vhosts]# lsof -i:80

COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME

AliYunDun 1527 root   19u  IPv4  16393      0t0  TCP 43.95.19.90:hermes->106.11.68.13:http (ESTABLISHED)

nginx     6440 root   18u  IPv4  82298      0t0  TCP *:http (LISTEN)

nginx     6458  www    7u  IPv4  81837      0t0  TCP 47.90.19.90:http->113.64.73.122:10899 (ESTABLISHED)

nginx     6458  www    8u  IPv4  81838      0t0  TCP 47.90.19.90:http->113.64.73.122:10900 (ESTABLISHED)

nginx     6458  www   18u  IPv4  82298      0t0  TCP *:http (LISTEN)

nginx     6459  www   18u  IPv4  82298      0t0  TCP *:http (LISTEN)

本文轉自 sailikung 51CTO部落格,原文連結:http://blog.51cto.com/net881004/2064571,如需轉載請自行聯系原作者

繼續閱讀