码迷,mamicode.com
首页 > 其他好文 > 详细

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)解决

时间:2018-08-27 10:32:53      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:mil   use   cache   解决   info   family   unp   tun   就是   

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] socket() [::]:80 failed (97: Address family not supported by protocol)
定位方法

1.先使用ps -e | grep nginx查看是否已经启动了nginx

2.如果没有的话则按照提示,查看0.0.0.0:80端口谁占用了,使用netstat -ltunp命令,可以看到

可以看到0.0.0.0:80端口被httpd这个进程占用了(也就是apcache占用)

技术分享图片

关闭httpd服务即可

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)解决

标签:mil   use   cache   解决   info   family   unp   tun   就是   

原文地址:https://www.cnblogs.com/youjianjiangnan/p/9540348.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!