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


按y 确定


在运行 Sc config http start= disabled


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

在查看一下netstat -ano

发现pid 4占用了445端口

posted on 2019-05-10 14:26  雪原日暮  阅读(1535)  评论(0编辑  收藏  举报