Nginx重启时提示"nginx: [emerg] bind() to 0.0.0.0"解决方法 老蒋 发布于 2019-06-03 分类:运维笔记 评论(0) 2000+站

c

  • 老蒋 发布于 2019-06-03
  •  
  • 分类:运维笔记
  •  
  •  
  •  
  • 评论(0)
  •  
  •  

Nginx重启时提示"nginx: [emerg] bind() to 0.0.0.0"解决方法 老蒋 发布于 2019-06-03 分类:运维笔记  评论(0)   2000+站

2000+站长交流QQ群: 594467847(资源和技术交流)

昨天下午老蒋在一台服务器中折腾迁移数据问题的时候,重启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重启时提示"nginx: [emerg] bind() to 0.0.0.0"解决方法 老蒋 发布于 2019-06-03 分类:运维笔记  评论(0)   2000+站

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

sudo fuser -k 80/tcp

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

/etc/init.d/nginx restart

Nginx重启时提示"nginx: [emerg] bind() to 0.0.0.0"解决方法 老蒋 发布于 2019-06-03 分类:运维笔记  评论(0)   2000+站Nginx重启时提示"nginx: [emerg] bind() to 0.0.0.0"解决方法 老蒋 发布于 2019-06-03 分类:运维笔记  评论(0)   2000+站 after you 发布了312 篇原创文章 · 获赞 28 · 访问量 13万+ 私信 关注
上一篇:解决:OSError: [Errno 98] Address already in use


下一篇:MySQL Bind on unix socket: Address already in use