首页 > 系统相关 >centos Nginx 启动失败nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

centos Nginx 启动失败nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

时间:2022-11-25 20:34:57浏览次数:60  
标签:use already 0.0 nginx emerg bind 80

[root@localhost html]#  /usr/sbin/nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]: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 [::]: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 [::]: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 [::]: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 [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

出现这种情况,一般是80端口被占用,关闭80端口就好


[root@localhost html]# docker ps
CONTAINER ID   IMAGE     COMMAND       CREATED        STATUS        PORTS                                     NAMES
2f7c08c71bba   centos    "/bin/bash"   23 hours ago   Up 23 hours   0.0.0.0:49154->80/tcp, :::49154->80/tcp   nginx

[root@localhost html]# fuser -k 80/tcp
80/tcp:              58656 58657 58658

 

标签:use,already,0.0,nginx,emerg,bind,80
From: https://www.cnblogs.com/path602/p/16926281.html

相关文章