使用:netstat -ano可以查詢PORT及佔用它的PID,而PID中可在工作管理員中來檢視是哪項程式

我使用時是重開機,之後在CMD中輸入這幾項:
1. net stop http
2. Sc config http start= disabled

原文引用:

該進程是Http.sys。它是http API的驅動組件,Http棧服務器。
如果該端口被Http.sys占用,說明一些正在使用http.sys的應用程序正在運行。
這就是阻止Apache運行的原因,因為Http.sys佔用著80端口。

我們提供了一種應用程序的機制來幫助控制端口共享,但是我需要調查導致你遇到這種困難是什麼特殊應用程序。
如果你能提供給我們“netsh http show servicestate”這條命令的輸出結果,我就能找出是哪個應用程序在使用Http.sys。
在你禁用Http.sys之前,請按照下面的步驟來運行命令:
1. sc config http stat = demand
2. reboot
3. run the command(netsh http show servicestat)as administrator

在你使用這個命令之前,你可以按照下面步驟禁用http.sys:
1. net stop http
2. Sc config http start= disabled

文章出處:http://rritw.com/a/bianchengyuyan/C__/20130124/296570.html
文章參考: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

arrow
arrow
    全站熱搜

    冰緒雪夜 發表在 痞客邦 留言(0) 人氣()