问题:
cmd运行ngix提示
nginx: [emerg] 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)
原因:
可能是windows iis开启了,它已经和80端口绑定了
解决办法:
关闭iis服务后,再次运行(可参考:Server2016如何关闭和禁用IIS服务器-腾讯云开发者社区-腾讯云)