IIS 安裝記錄


基本安裝

1
2
3
4
5
1. 控制台 > 程式集 > 開啟或關閉 Windows 功能
2. 選取 "Internet Information Services"
3. 選取 "Internet Information Servers 可裝載的 Web 核心"
4. 全選 "Internet Information Services" > "World Wide Web 服務" > "應用程式開發功能"
5. 確定

加載網站

1
2
3
4
5
6
7
8
9
1. 控制台 > 系統及安全性 > 系統管理工具
2. 打開 "Internet Information Services (IIS) 管理員"
3. 展開 "(電腦名稱)" > "站台" > "Default Web Site"
4. 右鍵 "新增虛擬目錄" > "[別名: demo]" > "[實際路徑: "C:\inetpub\wwwroot\demo"]" (如沒有可先建立) > "確定"
5. 選取 "demo"
6. 右鍵 "轉換成應用程式"
7. 選取 "Default Web Site" > "[右邊欄位 > 啟動]"
8. 選取 "(電腦名稱)" > "[右邊欄位 > 啟動]"
9. http://localhost/demo

改變 Port

1
2
1. 選取 "Default Web Site"
2. 右邊欄位 > 站台繫結 > 選取站點按修改即可

錯誤記錄

1
2
3
4
5
1. The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map
> 全選 "Internet Information Services" > "World Wide Web 服務" > "應用程式開發功能"

2. The Web server is configured to not list the contents of this directory
> 選擇 "demo (這為自己的目錄)" > "瀏覽目錄" > "啟用"