您的位置:首页 > 资讯 > 新闻资讯
80端口被system占用怎么办
发表时间:2021-07-04 | 来源:本站整理
分享到:
80端口被system占用怎么办?很多玩家都在问这个问题,相信大家都想知道80端口被system占用解决方法,那么下面就赶紧和小编一起去看看今天的内容吧。
这里以xampp搭建网页开发

80端口被system占用怎么办?很多玩家都在问这个问题,相信大家都想知道80端口被system占用解决方法,那么下面就赶紧和小编一起去看看今天的内容吧。

这里以xampp搭建网页开发环境时的情景为例,演示解决80端口被NT kernel & System 占用时的解决方法

方法一:

1.在xampp中启动Apache,发现启动失败

80端口被system占用怎么办 80端口被system占用解决方法

2.使用netstat查看端口,发现80端口被PID为4的进程占用:

80端口被system占用怎么办 80端口被system占用解决方法

3.打开任务管理器,表头右键,勾选PID,会发现PID为4的进程是个SYSTEM进程,描述为NT Kernel & System,

尝试用鼠标右键菜单结束此进程,发现结束任务按钮为灰不可用。

0任务管理器添加查看PID列

80端口被system占用怎么办 80端口被system占用解决方法

4.微软社区提供有这些资料,所以我们的解决思路是禁用http.sys。

I work on Http.sys technology at Microsoft and somebody sent me a link to this blog. I am a bit surprised by this behavior you are seeing on Windows7 Beta and with some help from you, I will like to find out the root cause of this issue so that we can take the appropriate action if needed.

You are right, Http.sys uses port 80. It is the driver component for httpapi, the server http stack (You can find more info on this technology at http://msdn.microsoft.com/en-us/library/aa364434(VS.85).aspx ). In your case, some application is running which is using http.sys to listen on port 80. This is preventing Apache from using port 80. We offer a mechanism for applications to help control port sharing but I’ll need to look into the specific application that’s causing you this conflict. If you can give us the output of following command “netsh http show servicestate”, then it will allow me to find out which application is using http.sys. Since you have disabled http.sys, please follow these steps listed below before running the command:

1. sc config http start= demand

2. Reboot

3. Run the command (netsh http show servicestate) as administrator

After you have run this command, you can disable http.sys as follows:

1. net stop htt

2. Sc config http start= disabled

Please let me know if you face any issues in the process.

Thanks,

Niranjan

  • 1
  • 2
  • 下一页