apache/nginx无法启动,报错显示80端口被占用

重启windows服务器后,发现apache无法启动,报错显示80端口被占用。

1. 在powershell中使用管理员权限运行如下代码

netstat -ano | findstr 0.0.0.0:80
发现占用80端口的竟然是pid为4的系统任务

2. 暴力解决方法,关闭windows系统中的http服务

net stop http

3. 配置禁止启动http服务

sc config http start=disabled

posted @ 2023-10-30 15:40  stone9693  阅读(223)  评论(0)    收藏  举报
GitHub账户:https://github.com/stone9693