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端口
本文详细介绍了当80端口被NTkernel&System进程占用时的解决步骤,包括使用命令行工具查找占用端口的进程,以及如何通过netstop和sc配置命令释放端口,最终成功启动Apache服务。
2516

被折叠的 条评论
为什么被折叠?



