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

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)
定位方法socket

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

2.若是没有的话则按照提示,查看0.0.0.0:80端口谁占用了,使用netstat -ltunp命令,能够看到spa

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

 

 关闭httpd服务便可: service httpd stop进程

相关文章
相关标签/搜索