前段时间停止了Apa che结果在打开的时候发现无法打开 80端口被占用于是win+r运行cmd
输入net stat -ano
可以看到80端口被PID4占用于是打开任务管理器-进程-查看选择列勾选PID
可以看到p id 4的被NT kerne l& System占用
在网上找了很久找到解决方案
-it-impos sible-to-insta ll-apach e-solut ion/comme nt-page-1/#comme nts
原文
翻译如下
该进程是H ttp. sys。它是http API的驱动组件 Http栈服务器。如果该端口被Http.sys占用说明一些正在使用ht tp. sys的应用程序在运行。这就是阻止Apach e运行的原因因为Htt p.sys占用着80端口。我们提供了一种应用程序的机制来帮助控制端口共享但是我需要调查导致你遇到这种困难的是什么特殊应用程序。如果你能提供给我们“netshhttp show servi cestate”这条命令的输出结果我就能找出是哪个应用程序在使用Http. sys。在你禁用H ttp. sys之前请按照下面的步骤来运行命令
1. scconfi ghttp stat = demand
2. reboo t
3. run the comma nd(netsh http show servi cestat)as admin istra tor
在你使用这个命令之前你可以按照下面步骤禁用http.sys
1. net stop http
2. Scconfi g http start=disab led
于是运行net stop http
按y确定
在运行Scconfi g http start=disab led
好了现在启动A pache可以启动了 。
在查看一下netst at -ano
发现pid 4占用了445端口
I work on Http.sys technology atMicrosoft and somebody sent me a l inkto this blog. I ama bitsurprised bythis behavioryou are seeing on Windows7 Beta and with some helpfrom you, I wi l l l ike to find out the root causeof this issue so thatwe can take theappropriate action if needed.
You are right,Http.sys uses port 80. It is the driver component for httpapi , the server httpstack(You can find more info on this technologyathttp://msdn.microsoft.com/en-us/l ibrary/aa364434(VS.85).aspx). In your case,someappl ication is running which is using http.sys to l isten on port80.This is preventingApache from using port80.We offera mechanism for appl ications to help control portsharing but I’ l l need to look into the specific appl ication that’s causing you this conflict. Ifyou can give us the output of fol lowing command“netsh http showservicestate”, then itwi l l al low me to find outwhich appl ication is using http.sys.Sinceyou have disabledhttp.sys, please fol lowthese steps l isted below before running the command:
1 .scconfig http start=demand
2.Re boot
3.Run the command(netsh http show servicestate)as administrator
After you have run this command,you can disable http.sys as fol lows:
1 . net stop http
2.Scconfig http start=disabled
Please let me knowif you face any issues in the process.
10gbiz怎么样?10gbiz 美国万兆带宽供应商,主打美国直连大带宽,真实硬防。除美国外还提供线路非常优质的香港、日本等数据中心可供选择,全部机房均支持增加独立硬防。洛杉矶特色线路去程三网直连(电信、联通、移动)回程CN2 GIA优化,全天低延迟。中国大陆访问质量优秀,最多可增加至600G硬防。香港七星级网络,去程回程均为电信CN2 GIA+联通+移动,大陆访问相较其他香港GIA线路平均速度更...
官方网站:点击访问青云互联活动官网优惠码:终身88折扣优惠码:WN789-2021香港测试IP:154.196.254美国测试IP:243.164.1活动方案:用户购买任意全区域云服务器月付以上享受免费更换IP服务;限美国区域云服务器凡是购买均可以提交工单定制天机防火墙高防御保护端口以及保护模式;香港区域购买季度、半年付、年付周期均可免费申请额外1IP;使用优惠码购买后续费周期终身同活动价,价格不...
onevps最新消息,为了更好服务中国区用户:1、网站支付方式新增了支付宝,即将增加微信;原信用卡、PayPal方式不变;(2)可以切换简体中文版网站,在网站顶部右上角找到那个米字旗,下拉可以换中国简体版本。VPS可选机房有:中国(香港)、新加坡、日本(东京)、美国(纽约、洛杉矶)、英国(伦敦)、荷兰(阿姆斯特丹)、瑞士(苏黎世)、德国(法兰克福)、澳大利亚(悉尼)。不管你的客户在亚太区域、美洲区...