nginx 问题解决nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Posted 向阳&草
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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)
1.先使用ps -e | grep nginx查看是否已经启动了nginx
2.如果没有的话则按照提示,查看0.0.0.0:80端口谁占用了,使用netstat -ltunp命令,可以看到
可以看到0.0.0.0:80端口被(有可能是 apcache2 占用)
l浏览器直接访问 I P,查看占用端口是不是 apcache2
停止掉 apcache 2 就可以重新启动了
以上是关于nginx 问题解决nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)的主要内容,如果未能解决你的问题,请参考以下文章
nginx安装 nginx: [emerg] getpwnam(“www”) failed 错误
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)解决
nginx: [emerg] getpwnam(“www”) failed
nginx: [emerg] no events section in configuration
报错锦集二“nginx: [emerg] unknown directive “set_real_ip_from“ in /usr/local/nginx/conf/nginx.conf:50 ngi
解决Mac nginx问题 [emerg] 54933#0: bind() to 0.0.0.0:80 failed (13: Permission denied)