5ol.cc 发表于 2018-11-13 10:39:58

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

  1、使用lsof -i:80查询没有监听到端口。
  2、重启或重新加载nginx都报这个错误。

  # /alidata/server/nginx-1.4.4/sbin/nginx -s>  nginx: kill(1668, 1) failed (3: No such process)
  3、按照下面的方法处理好了。
  # /alidata/server/nginx-1.4.4/sbin/nginx -c /alidata/server/nginx-1.4.4/conf/nginx.conf

  # /alidata/server/nginx-1.4.4/sbin/nginx -s>  # lsof -i:80

  COMMAND    PID USER   FD   TYPE DEVICE>  AliYunDun 1527 root   19uIPv416393      0t0TCP 43.95.19.90:hermes->106.11.68.13:http (ESTABLISHED)
  nginx   6440 root   18uIPv482298      0t0TCP *:http (LISTEN)
  nginx   6458www    7uIPv481837      0t0TCP 47.90.19.90:http->113.64.73.122:10899 (ESTABLISHED)
  nginx   6458www    8uIPv481838      0t0TCP 47.90.19.90:http->113.64.73.122:10900 (ESTABLISHED)
  nginx   6458www   18uIPv482298      0t0TCP *:http (LISTEN)
  nginx   6459www   18uIPv482298      0t0TCP *:http (LISTEN)

页: [1]
查看完整版本: nginx服务异常造成网站访问不了