人人IT網

人人IT網

當前位置: 主頁 > 編程語言 > ASP >

win7 80端口被system占用

時間:2012-10-21 00:47來源:Internet 作者:Internet 點擊:
Win7的80端口默認是被System進程占用的 用如下方法可以解决System進程占用80端口的問題: 打開RegEdit: 找到HKEY_LOCAL_MACHINE/SYSTEM/CurrentC

Win7的80端口默認是被System進程占用的
用如下方法可以解决System進程占用80端口的問題:
打開RegEdit:
找到HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/HTTP
找到一個DWORD值Start,將其改为0

重启電腦,System進程將不會占用80端口

============================================

新裝了win7後,在启動Apache的時候,總是启動失敗,查看80端口,被pid=4的進程占用,打開任務管理器,發現pid=4的進程居然是個系統進程!

嘗試終結此進程,結果是藍屏。

解决過程:

在網上查了許久,發現以下解决方案:

(來源網址:http://go.rritw.com/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 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 athttp://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 http
2. Sc config http start= disabled

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

Thanks,
Niranjan


From:CSDN
頂一下
(0)
0%
踩一下
(0)
0%
------分隔線----------------------------
發表評論
請自覺遵守互聯網相關的政策法規,嚴禁發布色情、暴力、反動的言論。
評價:
表情:
驗證碼:點擊我更換圖片
欄目列表
推薦內容