phpstudy 80端口被占用的解决方法

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

显示80端口被占用

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

扫描二维码关注公众号,回复: 6190238 查看本文章


按y 确定


在运行 Sc config http start= disabled


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

在查看一下netstat -ano

发现pid 4占用了445端口

猜你喜欢

转载自www.cnblogs.com/muxueyuan/p/10844252.html