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

Win10 安裝 WampServer Apache 無法啟動?80 埠被 IIS 佔用,停用 IIS 服務解決

編輯:關於 Windows

問題現象

安裝 WampServer (Apache 2.4.9) 後,Apache 服務無法啟動(圖示卡橙色),錯誤日誌提示 80 埠被佔用,通常是 Windows 內建 IIS 服務搶佔。

解決步驟

  1. 安裝 Visual C++ Redistributable: 根據 WampServer 版本(x64/x86)安裝對應 vcredist_x64.exe 或 vcredist_x86.exe(VS 2012/2013/2015/2017/2019 均可),缺少運行庫會導致 Apache 崩潰。

VC++ Redistributable 下載

安裝 VC++ 運行庫

  1. 停用 IIS 服務釋放 80 埠:
    1. 「這台電腦」右鍵 →「管理」→「服務與應用程式」→「服務」找到 World Wide Web Publishing Service (W3SVC) 停用並設為「手動/停用」。
    2. 或「控制台」→「程式」→「啟用或關閉 Windows 功能」→ 取消勾選 Internet Information Services → 確定 → 重開機。
  2. 重新啟動 WampServer 所有服務(托盤圖示右鍵),Apache 應變綠色正常運行。

程式和功能啟用關閉 Windows 功能

取消勾選 IIS

補充

  • 若需保留 IIS,可修改 Apache httpd.conf 將 Listen 80 改為 Listen 8080 等其他埠,存取時網址加 :8080。
  • WampServer 托盤圖示顏色:紅=全停、橙=部份啟動、綠=全啟動。
Copyright © Windows教程網 All Rights Reserved