Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Windows 8 解決 80 連接埠被 SYSTEM 進程佔用

編輯:關於 Windows

Windows 8/8.1/10 中,HTTP.sys 核心驅動預設啟動並佔用 80 連接埠,導致 Apache (WAMP/XAMPP/PHPnow) 無法啟動。透過修改登錄停用 HTTP 服務即可釋放 80 連接埠。

診斷指令

netstat -aon | findstr :80
tasklist /FI "PID eq 4"

確認 PID 4 (SYSTEM) 佔用 0.0.0.0:80。

解決方法(修改登錄)

  1. 開啟 regedit,定位至:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP
  1. 找到 Start (REG_DWORD),將數值從 3 (手動) 改為 0 (停用)。
  2. 重新開機生效。

替代方案(不修改登錄)

  • Apache 設定檔 httpd.conf 將 Listen 80 改為 Listen 81 或 8080。
  • 或使用 net stop http 臨時停止服務(重開機後恢復)。

注意

  • 停用 HTTP 服務可能影響依賴 HTTP.sys 的功能(如 Windows 遠端管理 WinRM、某些 IIS 功能、BranchCache 等)。純本地開發環境通常無影響。
  • Windows 10 同樣適用此修正。
Copyright © Windows教程網 All Rights Reserved