![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) 解决办法](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
遇到这个问题,是因为某个服务正在使用80端口;
解决步骤:
1.使用netstat命令查看80端口被哪个服务占用了
netstat -ant | grep 80
- 1
2.关闭80端口
/etc/init.d/httpd stop
- 1
3.启动nginx
service nginx restart
- 1
总结:解决一个问题必须要挖掘到问题的根源或者说本质。
如果觉得文章真心好, 请打赏下我吧http://blog.csdn.net/assassinsshadow/article/details/76086401