nginx服务异常造成网站访问不了

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx服务异常造成网站访问不了相关的知识,希望对你有一定的参考价值。

1、使用lsof -i:80查询没有监听到端口。


2、重启或重新加载nginx都报这个错误。

[[email protected] vhosts]# /alidata/server/nginx-1.4.4/sbin/nginx -s reload
nginx: [alert] kill(1668, 1) failed (3: No such process)


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

[[email protected] vhosts]# /alidata/server/nginx-1.4.4/sbin/nginx -c /alidata/server/nginx-1.4.4/conf/nginx.conf
[[email protected] vhosts]# /alidata/server/nginx-1.4.4/sbin/nginx -s reload
[[email protected] 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服务异常造成网站访问不了的主要内容,如果未能解决你的问题,请参考以下文章

前端开发用nginx代理服务器解决服务器跨域问题及跨域访问https访问(mac系统下)

Nginx反向代理

Nginx反向代理

nginx 怎么配置 ip

[转]使用Nginx实现反向代理

Nginx+keepalived 实现Nginx的高可用