nginx启动报错bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidd

nginx 不能启动,报错如下
该错误 实在 nginx 的 logs 下的 errorr.log 中查看
2018/12/24 10:29:15 [emerg] 14940#3232: 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)

  1. 通过 cmd 命令查看 80 端口的占用情况
    输入命令: netstat -aon|findstr 80
    2 输入命令 tasklist|findstr 17386(自己的进程号)
    3 干掉对应的任务
    nginx启动报错bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidd
    总结
    事实上,我通过以上方步骤,我发现我的端口占用 是 System 占用的, 但是我没敢直接干掉 这个任务,我突然想到可能是 IIS 服务 原因。
    果不其然, 这个 IIS 服务在每次 强制更新后就会 监听 80 端口
    nginx启动报错bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidd
    nginx启动报错bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidd
    nginx启动报错bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidd
    nginx启动报错bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidd