在网站建设中宝塔linux面板中,无法启用nginx,启动报错如下:
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] 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] 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端口
3.启动nginx
重新进入,清理缓存,问题解决。
|
|