2014年3月7日

解決 windows 服務 http 無法啟用的問題

辦公室有個阿呆因為要處理80 port 被佔用的問題,google到 "net stop http"這個指令。結果佔用是解決了,可是要下"net start http"時卻變成服務已經停用,無法啟動的窘境。

控制台\服務\列表內完全找不到 http 這個服務

這時候只能用 sc 這個指令來修改了

sc 常用指令
sc config 設定服務的啟動參數
sc query 查詢服務的狀態
sc qc 查詢服務的設定資訊
sc start 啟動服務
sc stop 停用服務
sc pause 暫停服務
sc continue 繼續服務

所以可以下這個指令
c:\sc config http start= demand
來把被停用的服務改成手動

然後再下
c:\sc start http
來啟動http服務


reference:管理 Windows Server 服務

0 意見:

張貼留言