admin 发表于 2020-8-3 17:11

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

在网站建设中宝塔linux面板中,无法启用nginx,启动报错如下:
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
出现这个问题的原因是888端口被其他应用占用了。
如何解决呢,下面自丢网跟大家分享下处理问题教程:
1.使用netstat命令查看80端口被哪个服务占用了
netstat -ant | grep <span style="background-color: rgb(255, 255, 255);">80</span>2.关闭888端口
/etc/init.d/httpd stop3.启动nginx
service nginx restart重新进入,清理缓存,问题解决。
页: [1]
查看完整版本: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)解决方法