系统相关
首页 > 系统相关> > nginx bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket

nginx bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket

作者:互联网

80端口果真被占用。

一开始想着在nginx.conf里面修改端口号,但是发现出现下面的错误:

nginx: [error] OpenEvent("Global\ngx_reload_8404") failed (2: The system cannot find the file specified)

Nginx 尚未启动导致,需要执行 start nginx 命令开启Nginx

执行找到对应端口的pid发现被System占用了

打开注册表:regedit

找到:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP

找到Start,将其改为0

4、重启系统,System进程不会占用80端口

标签:made,attempt,0.0,占用,端口,System,nginx,80
来源: https://blog.csdn.net/qq_35355153/article/details/89486594