首页 > 其他 > 详细

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

时间:2020-05-01 22:10:33      阅读:878      评论:0      收藏:0      [点我收藏+]
[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 

技术分享图片

 

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

原文:https://www.cnblogs.com/dianzan/p/12814800.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!