Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 架設 IIS Web 伺服器完整步驟

編輯:Win7 系統應用技巧

Windows 7 內建 IIS(Internet Information Services)可快速架設本機 Web 伺服器,實現區域網路資源共享與網站測試。架設步驟:

  1. 「控制台」→「程式集」→「開啟或關閉 Windows 功能」→ 勾選「Internet Information Services」下所有子項 →「確定」等待安裝完成。
  2. 瀏覽器輸入 https://localhost/,出現 IIS 7 歡迎頁即代表架設成功。
  3. 網站預設根目錄為 %SystemDrive%\inetpub\wwwroot,將開發好的網站檔案複製至該目錄即可本機瀏覽。
  4. 開啟防火牆允許 HTTP 流量:「控制台」→「系統及安全性」→「Windows 防火牆」→「允許程式通過 Windows 防火牆」→ 勾選「World Wide Web Services (HTTP)」的「家庭/公司(私人)」與「公用」兩個核取方塊 →「確定」。
  5. 區域網路其他電腦瀏覽器輸入 https://<本機IP>/ 即可存取共享網站資源。

若需對外發布,請在路由器設定連接埠轉送(Port 80/443)並申請動態 DDNS 或固定公網 IP。IIS 亦支援 PHP、Python 等模組擴充,滿足多種開發測試需求。

Copyright © Windows教程網 All Rights Reserved