!
也想出现在这里? 联系我们
广告位
当前位置:首页>教程分享>服务器教程>Nginx重启时提示"nginx: [emerg] bind() to 0.0.0.0"解决方法

Nginx重启时提示"nginx: [emerg] bind() to 0.0.0.0"解决方法

昨天下午开心游玩在一台服务器中折腾迁移数据问题的时候,重启Nginx的时候有发现\"Starting nginx... nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)\"这样的报错问题。

Starting nginx... nginx: [emerg] bind() to 0.0.0.0:888 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:888 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:888 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:888 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:888 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
failed

估摸着是在操作的时候忘记关闭Nginx导致启动冲突,这里要禁止掉端。

sudo fuser -k 80/tcp

最后我们再重启Nginx后显示正常:

/etc/init.d/nginx restart

给TA打赏
共{{data.count}}人
人已打赏
服务器教程

解决宝塔面板"/etc/init.d/bt: line 129"报错问题方法

2021-4-17 19:42:18

服务器教程

解决"umount: /www: device is busy"问题

2021-4-17 19:42:20

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:吉吉国王 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索
OneEase