• centos启动Nginx提示nginx: [emerg] still could not bind()


    [root@iZbp1aed32ln6eZ sbin]# netstat -ntlp|grep 80
    tcp        0      0 127.0.0.1:8005          0.0.0.0:*               LISTEN      1501/java           
    tcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN      1501/java           
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      7225/nginx: master  
    tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      7036/java           
    [root@iZbp1aed32ln6eZ sbin]# kill -9 7225
    [root@iZbp1aed32ln6eZ sbin]# ./nginx -s reload
    nginx: [alert] kill(7225, 1) failed (3: No such process)
    [root@iZbp1aed32ln6eZ sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    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()
    [root@iZbp1aed32ln6eZ sbin]# netstat -ntlp|grep 80
    tcp        0      0 127.0.0.1:8005          0.0.0.0:*               LISTEN      1501/java           
    tcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN      1501/java           
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      7276/nginx: worker  
    tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      7036/java           
    [root@iZbp1aed32ln6eZ sbin]# killall -9 nginx
    [root@iZbp1aed32ln6eZ sbin]# systemctl restart nginx
    Failed to restart nginx.service: Unit not found.
    [root@iZbp1aed32ln6eZ sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    [root@iZbp1aed32ln6eZ sbin]# ./nginx -s reload 

  • 相关阅读:
    AC自动机
    【洛谷P1972】HH的项链
    【洛谷P4341】外星联络
    【洛谷P4576】棋盘游戏
    【JZOJ3800】败屩妖
    【JZOJ3798】临洮巨人
    【洛谷P3830】随机树
    【JZOJ3799】青蛙神
    牛客练习赛56 题解
    【洛谷P5300】与或和
  • 原文地址:https://www.cnblogs.com/dianzan/p/12814800.html
Copyright © 2020-2023  润新知