1. 程式人生 > >nginx服務異常造成網站訪問不了

nginx服務異常造成網站訪問不了

服務 failed 4.4 ron process vhost 網站 lis man

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]# /alidata/server/nginx-1.4.4/sbin/nginx -s reload

[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)

nginx服務異常造成網站訪問不了