無標(biāo)題文章

80端口被NT Kernel

& System占據(jù)

2011-09-06

誰想本身晚年獲獲成功,就必須從青少年做起叫人不興奮的真諦,勝過叫人興奮

瞎話。

前段時候停止了Apache,成果在打開的時辰發(fā)明無法打開,80端口被占用,于是win+r運行cmd

輸入netstat-ano

可以看到80端口被PID4占用,于是打開任務(wù)經(jīng)管器-過程-查看,選擇列,勾選PID

可以看到pid 4的被NT kernel &

System占用

?

在網(wǎng)上找了好久找到解決規(guī)劃

http://www.cameroncooke.com/2009/01/25/windows-7-uses-port-80-and-makes-it-impossible-to-install-apache-solution/comment-page-1/#comments

原文:

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 you,I will like to find out the root cause of this issue so that we can takethe 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 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 http

2. Sc config http start= disabled

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

Thanks,

Niranjan

翻譯如下:

該過程是Http.sys。它是http API的驅(qū)動組件,Http棧辦事器。若是該端口被Http.sys占用,申明一些正在應(yīng)用http.sys的應(yīng)用法度在運行。這就是阻攔Apache運行的原因,因為Http.sys占用著80端口。我們供給了一種應(yīng)用法度的機(jī)制來幫助把握端口共享,然則我須要查詢拜訪導(dǎo)致你碰到這種艱苦的是什么特別應(yīng)用法度。若是你能供給給我們“netsh http show servicestate”這條號令的輸出成果,我就能找出是哪個應(yīng)用法度在應(yīng)用Http.sys。在你禁用Http.sys之前,請遵守下面的步調(diào)來運行號令:

1. sc config http stat = demand

2. reboot

3. run the command(netsh http show servicestat)as administrator

在你應(yīng)用這個號令之前,你可以遵守下面步調(diào)禁用http.sys:

1. net stop http

2. Sc config http start= disabled

?

于是運行net stop http

?

按y斷定

?

在運行Sc config http start= disabled

?

好了,如今啟動Apache,可以啟動了。

在查看一下netstat -ano

發(fā)明pid 4占用了445端口

MRMY

?g??????

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容