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 bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket

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

执行nginx bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket找到对应端口的pid发现被System占用了

打开注册表:regedit

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

找到Start,将其改为0

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

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

上一篇:服务器DD命令将已有的硬盘镜像文件直接写到别的硬盘上


下一篇:简述什么是SpringSecurity