window下运行nginx出现nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a s

做谷粒学院项目,用nginx出现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)

百度一下说是端口被占用了。

具体操作:

运行–cmd

命令:netstat -aon|findstr "80" ,查找该端口

window下运行nginx出现nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a s

 

 再跟进TCPID查询,输入命令tasklist|findstr "2448"

window下运行nginx出现nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a s

 

 在服务进程中关闭该服务,运行成功。

上一篇:594. Longest Harmonious Subsequence


下一篇:Unity 中解决序列化私有变量导致的警告