nginx启动服务提示98: Address already in use 解决
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了nginx启动服务提示98: Address already in use 解决,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2003字,纯文字阅读大概需要3分钟。
内容图文
![nginx启动服务提示98: Address already in use 解决](/upload/InfoBanner/zyjiaocheng/925/a7cddbbba1454e54a5a5f5b46726b2ee.jpg)
问题描述:
环境:
linux centos6,7;php >5.6 ; nginx 1.18
域名已备案已解析,开放ping,且正常,访问网址无法访问
解决:
步骤一:查看重启nginx:
[我的服务器 ~]# service nginx restart
Stoping nginx... nginx is not running.
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:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:9091 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:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:9091 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:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:9091 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:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:9091 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:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:9091 failed (98: Address already in use)
nginx: [emerg] still could not bind()
failed
端口被占用。
步骤二:杀死nginx,并重启nginx
[我的服务器 ~]# killall -9 nginx
[我的服务器 ~]# service nginx restart
centos 6.x 重启 nginx -s reload
centos 7.x 重启 systemctl restart nginx.service 或 service nginx restart
重新访问网址,正常访问。
内容总结
以上是互联网集市为您收集整理的nginx启动服务提示98: Address already in use 解决全部内容,希望文章能够帮你解决nginx启动服务提示98: Address already in use 解决所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。