1.执行httpd.exe  D:\phpStudy\PHPTutorial\Apache\bin>httpd.exe   返回 could not bind to address 0.0.0.0:80

显示80端口被占用

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

2.cmd netstat -ano |findstr "80"  查看进程id 4

 

3.在任务管理器里面发现 进程id为4  的为 NT kernel & System 

 

4.下面是关闭NT kernel & System 的方法:

 

原文地址:80端口被NT kernel & System 占用pid 4解决方法作者:威廉

打开cmd

运行net stop http


按y 确定


在运行 Sc config http start= disabled


好了,现在启动Apache,可以启动了。

在查看一下netstat -ano

发现pid 4占用了445端口

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄