情景:使用cmd启动某一服务的时候报错
[emerg] 7220#6900: 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)
,查询占用端口进程为4
的情况下可参照以下操作:
- 以管理员身份运行regedit ;
- 打开键值:HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesHTTP ;
- 在右边找到Start这一项,将其改为0;
- 重启系统,System进程不会占用80端口。