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端口

你可能感兴趣的:(前端)