错误原因是Nginx无法启动, 提示80端口被占用
报错:
[emerg] 14180#15404: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
首先查看80端口被谁占用:
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:7680 0.0.0.0:0 LISTENING 9676
TCP 127.0.0.1:49679 127.0.0.1:49680 ESTABLISHED 6704
被系统占用了:
这里我使用的b方案
打开桌面应用 — 服务
停用以下项:
- World Wide Web Publishing Service
- SSDP Discovery
- Print Spooler
- HomeGroup Provider
- Function Discovery Resource Publication
- Function Discovery Provider Host
————————————————
版权声明:本文为CSDN博主「Max伏虎」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_40725601/article/details/83651573
参考:
Window下启动Nginx报An attempt was made to access a socket in a way forbidden by its access permissions_英菲nidi50070的博客-CSDN博客
WIN10 解决80端口默认被占用的问题_Max伏虎的博客-CSDN博客
Win11中顽固型80端口占用问题_田辛 | 田豆芽的博客-CSDN博客_win1180端口被占用