服务器迁移数据重启Nginx时”Starting nginx… nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)”报错问题

2019-06-1121:47:09服务器及运维Comments3,371 views字数 882阅读模式

在一台服务器中折腾迁移数据问题的时候,重启Nginx的时候有发现"Starting nginx... nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)"这样的报错问题。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/13580.html

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文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/13580.html

服务器迁移数据重启Nginx时”Starting nginx… nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)”报错问题文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/13580.html

估摸着是在操作的时候忘记关闭Nginx导致启动冲突,这里要禁止掉端。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/13580.html

sudo fuser -k 80/tcp文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/13580.html

最后我们再重启Nginx后显示正常:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/13580.html

/etc/init.d/nginx restart文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/13580.html

文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/13580.html
  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/yunwei/13580.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定