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

IIS 完整指南:定義、安裝、啟動與 Windows XP/Vista/2003 多版本部署詳解

編輯:關於伺服器

什麼是 IIS?

IIS (Internet Information Services) 是 Microsoft 提供的 Web 伺服器套件,整合 Web (HTTP)、FTP、NNTP (新聞)、SMTP (郵件) 四大服務。隨 Windows NT 4.0 Server 首次內建,現為 Windows Server 核心角色之一。支援 ASP、ASP.NET、PHP 等動態技術,提供 FrontPage 延伸、Index Server 全文檢索、NetShow 串流等功能,並深度整合 NTFS 權限與 Windows 安全機制。

核心服務組件

  • WWW 服務:網頁瀏覽、ASP/ASP.NET/PHP 執行
  • FTP 服務:檔案傳輸
  • NNTP 服務:新聞群組
  • SMTP 服務:郵件傳送

Windows Server 2003 / XP Professional 安裝啟動

安裝步驟

  1. 控制台 → 新增/移除程式 → 新增/移除 Windows 元件
  2. 勾選「Internet Information Services (IIS)」,依提示完成
  3. 預設安裝包含全部四項服務

啟動服務

  1. 控制台 → 管理工具 → Internet Information Services (IIS) 管理員
  2. 對顯示「已停止」的服務右鍵 → 啟動

Windows XP Home 版破解安裝 IIS(非官方支援)

⚠ 警告:此為非官方修改,可能導致系統不穩、安全更新失效、相容性問題。生產環境請升級至 Professional 版或使用 Windows Server。

操作步驟

  1. 準備 Windows 2000 Professional 安裝光碟
  2. 編輯 C:\Windows\inf\sysoc.inf,將 iis=iis.dll,OcEntry,iis.inf,hide,7 修改為 iis=iis2.dll,OcEntry,iis2.inf,,7
  3. 從 Win2K 光碟 i386 目錄解壓 iis.dl_、iis.in_,重命名為 iis2.dll、iis2.inf 複製至對應系統目錄
  4. 控制台 → 新增/移除 Windows 元件 → 勾選 IIS → 完成安裝
  5. 若提示需 XP 光碟或缺 exch_adsiisex.dll,取消勾選 SMTP 服務即可繞過

Windows Vista / Server 2008 安裝 IIS 7.0

新特性亮點

  • 模組化架構、applicationHost.config 全域設定檔(XML 格式)
  • 全新 IIS 管理員,整合 ASP.NET 管理
  • 命令列工具 AppCmd.exe 支援腳本自動化
  • 管線模式:整合/傳統,效能大幅提升

安裝步驟

  1. 控制台 → 程式 → 開啟或關閉 Windows 功能(觸發 UAC)
  2. 勾選「Internet Information Services」
  3. 需動態內容者:展開「万维网服务」→ 勾選 ASP.NET、ISAPI、CGI 等所需模組
  4. 確定安裝,完成後瀏覽器輸入 https://localhost/ 驗證

常見問題與驗證

問題解決方向
安裝後 localhost 顯示 403/404檢查預設網站是否啟動、實體路徑權限、預設文件設定
ASP.NET 應用報錯執行 aspnet_regiis -i 重新註冊、檢查應用程式集區 .NET 版本
FTP 無法連線檢查 FTP 服務啟動、防火牆 21/被動模式埠、使用者隔離設定

版本對照快查表

Windows 版本IIS 版本安裝方式
Windows NT 4.0 ServerIIS 2.0/3.0/4.0Option Pack 另裝
Windows 2000 ServerIIS 5.0元件精靈安裝
Windows XP ProfessionalIIS 5.1元件精靈安裝
Windows Server 2003IIS 6.0元件精靈/管理工具
Windows Vista/Server 2008IIS 7.0開啟/關閉 Windows 功能
Windows 7/Server 2008 R2IIS 7.5同上
Windows 8/Server 2012IIS 8.0/8.5伺服器管理員/功能
Windows 10/Server 2016+IIS 10.0同上
Copyright © Windows教程網 All Rights Reserved