nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)

Posted 幸福n-1次方

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)相关的知识,希望对你有一定的参考价值。

Mac上启动nginx报如上错误,原因是80端口已被占用,可能有些服务未能成功关闭。

解决:键入命令 sudo nginx -s stop ( 或 sudo nginx -s  quit) ,然后 sudo nginx 重启nginx。

如果是因为其他服务占用了 80端口,如apache服务等,就把对应服务关掉(sudo apachectl stop) 。

以上是关于nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)的主要内容,如果未能解决你的问题,请参考以下文章

Starting nginx: nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied) nginx 启动失败

nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

Gitlab 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

nginx - nginx:[emerg] bind()到[::]:80失败(98:地址已经在使用中)

nginx: [emerg] bind() to 0.0.0.0:18071 failed (13: Permission denied)