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

Win7 80 連接埠被 System 佔用怎麼辦?修改登錄檔停用 HTTP 服務釋放 80 連接埠

編輯:關於 Windows

Windows 7 預設啟用 HTTP 服務佔用 80 連接埠,導致 Apache、Nginx、IIS 等 Web 伺服器無法啟動。查詢佔用程序為 PID 4 (System)。解決方法:修改登錄檔停用 HTTP 服務自動啟動。

查詢佔用確認

netstat -aon | findstr 80
tasklist | findstr 

顯示 System (PID 4) 佔用 80 連接埠。

解決方法:停用 HTTP 服務

  1. 開啟登錄檔編輯器 (regedit),瀏覽至:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP
  2. 找到 DWORD 值 Start,將數值改為 0 (停用)。
  3. 重新開機,System 不再佔用 80 連接埠,Web 伺服器可正常啟動。

替代方案

  • 服務管理員 (services.msc) 找到「HTTP」服務,啟動類型設為「停用」。
  • 或將 Web 伺服器改用其他連接埠 (如 8080)。

修改登錄檔屬永久生效,適合長期跑本地開發伺服器的環境。

Copyright © Windows教程網 All Rights Reserved