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

IIS 啟動失敗錯誤 0x8ffe2740:連接埠 80 衝突排查與解決

編輯:Server 2003

錯誤現象

啟動 IIS 時彈出「發生意外錯誤 0x8ffe2740」,主因為 TCP 80 埠已被其他程式佔用。

快速排查步驟

  1. 開啟命令提示字元,執行:
    netstat -abn > c:\port80.txt
  2. 用記事本開啟 c:\port80.txt,搜尋本機 IP 後接 :80(如 192.168.1.101:80),最右欄即為佔用程式名稱(PID/進程名)。
  3. 找出佔用程式(常見:Apache、Nginx、Skype、VMware、某些防毒軟體 Web Proxy),修改其監聽埠或停用該服務。
  4. 控制台 → 管理工具 → Internet 資訊服務 → 啟動 IIS,服務應能正常啟動。

常見佔用 80 埠程式與處理

程式解決方式
Apache / Nginx修改 httpd.conf / nginx.conf 的 Listen 指令為其他埠(如 8080)
Skype工具 → 選項 → 進階 → 連線 → 取消勾選「使用埠 80 和 443」
VMware Workstation編輯 → 偏好設定 → 共用 VM → 變更 HTTP 埠
SQL Server Reporting ServicesReporting Services 設定管理器 → Web 服務 URL → 埠號修改

進階:使用 Resource Monitor

Windows 內建「資源監視器」(resmon.exe)→ 網路索引標籤 → 聆聽埠,可視化查看 PID 與進程名,更直觀。

結語

釋放埠 80 後 IIS 即可正常啟動。建議將 IIS 設為自動啟動,並在伺服器規劃階段預先分配埠口,避免衝突。

Copyright © Windows教程網 All Rights Reserved