在 VM 上安裝 IIS,Manage => Add Role and Features
Step by Step 的過程中,在 Server Roles 勾選 Web Server(IIS)
完成 IIS 設定
![[Azure] VM - 啟用 IIS-10](https://farm9.staticflickr.com/8614/16029384576_797835068a_z.jpg)
在 Azure 上可以找到該 VM 的 DNS 名稱
利用 DNS 名稱連接 IIS,會發現無法連進去,這是因為 Azure VM 上的 HTTP 80 port 未開啟造成的
Azure VM => 端點 => 加入
勾選 "加入獨立端點"
選擇 HTTP
HTTP 80 Port 開啟完成,另老師上課時有提到 Port 開越少對於安全性越好,甚至 RDP 的 3389 port 平時也不要建立,需要時再建立就行
再次利用 Azure VM 的 DNS 名稱就可以連進 IIS 內
- 2014 Windows Azure 開發訓練營內容摘錄
Azure的端點有Port Forwarding的機能,一個端點可分為內部和外部,內部是對應到虛擬機器本身,而外部則是對應到Internet,內部和外部的Port編號可以不一樣,不過若是有開放內部Port,卻沒有開啟虛擬機器本身的Windows防火牆的對應Port時,仍然會無法連線,且Internet端的使用者必須透過外部Port來存取,例如IIS對外開8080,對內開80,則在內部瀏覽一樣是走80 port,但外部就必須要用8080 port才能連到。
![[Azure] VM - 啟用 IIS-1](https://farm9.staticflickr.com/8595/16026651545_bf539fa279_o.jpg)
![[Azure] VM - 啟用 IIS-2](https://farm8.staticflickr.com/7579/15404407074_4c5a54e8b5_z.jpg)
![[Azure] VM - 啟用 IIS-3](https://farm9.staticflickr.com/8654/15839238608_5e64b34563_z.jpg)
![[Azure] VM - 啟用 IIS-4](https://farm8.staticflickr.com/7482/16024714271_88d101f2dc_o.jpg)
![[Azure] VM - 啟用 IIS-5](https://farm8.staticflickr.com/7468/15840607829_78a8ff90f4_z.jpg)
![[Azure] VM - 啟用 IIS-6](https://farm9.staticflickr.com/8613/16026651415_4bbd17a8f0_o.jpg)
![[Azure] VM - 啟用 IIS-7](https://farm8.staticflickr.com/7556/16026651465_e0aa85f9af_o.jpg)
![[Azure] VM - 啟用 IIS-8](https://farm8.staticflickr.com/7567/16024714181_01bf93c9b4_o.jpg)
![[Azure] VM - 啟用 IIS-9](https://farm8.staticflickr.com/7562/16026063672_7cb92126d4_z.jpg)
沒有留言:
張貼留言