Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Windows Azure > Using Windows Azure Case Study (Move to VM - Windows) > ขั้นตอนที่ 2 : การติดตั้ง IIS Web Server การสร้าง Endpoint เพื่อบริการ Web Server



Clound SSD Virtual Server

ขั้นตอนที่ 2 : การติดตั้ง IIS Web Server การสร้าง Endpoint เพื่อบริการ Web Server

ขั้นตอนที่ 2 : การติดตั้ง IIS Web Server และการสร้าง Endpoint เพื่อบริการ Web Server หลังจากที่ได้ VM ที่เป็น Windows Server 2008 แล้ว ขั้นตอนถัดไปคือเราจะต้องทำให้ VM ที่ได้สร้างขึ้น กลายเป็น Web Server ที่สามารถรันเว็บไซต์และเรียกใช้งานผ่าน Web Browser ด้วยการติดตั้ง IIS (Internet Information Services) และการสร้าง Endpoint เพื่อให้ Client สามารถเรียก Web Server ด้วย Web Browser ซึ่งปกติแล้วจะใช้ Port เป็น 80 ซึ่งขั้นตอนนี้ก็จะเหมือนกับการติดตั้ง IIS บน Windows Server ทั่ว ๆ ไป

ติดตั้ง IIS Web Server

Windows Azure VM IIS Web Sever Endpoint

Remote Desktop เข้าสู่ VM ตอนนี้เราอยู่บนหน้าจอ Desktop ของ Windows Server 2008

Windows Azure VM IIS Web Sever Endpoint

คลิกที่ Server Manager

Windows Azure VM IIS Web Sever Endpoint

เลือก Roles -> Add Roles

Windows Azure VM IIS Web Sever Endpoint

เลือก Next

Windows Azure VM IIS Web Sever Endpoint

เลือก Web Server (IIS)








Windows Azure VM IIS Web Sever Endpoint

Next

Windows Azure VM IIS Web Sever Endpoint

คลิกเลือกดังรูป หรือจะกำหนดเป็นค่า Default จากนั้นให้คลิก Next

Windows Azure VM IIS Web Sever Endpoint

เลือก Install

Windows Azure VM IIS Web Sever Endpoint

กำลังติดตั้ง

Windows Azure VM IIS Web Sever Endpoint

ติดตั้งเรียบร้อย

หลังจากนั้นทดสอบการทำงานของ IIS บน VM Server ด้วยการรัน http://localhost ผ่าน Web Browser

Windows Azure VM IIS Web Sever Endpoint

ถ้าแสดงผลดังรูป แสดงว่า IIS สามารถทำงานได้ตามปกติ


การสร้าง Endpoint สำหรับเปิดบริการ Web Server

Windows Azure VM IIS Web Sever Endpoint

บน Portal Management ของ Windows Azure ให้คลิกที่เมนู ENDPOINTS

Windows Azure VM IIS Web Sever Endpoint

เลือก ADD

Windows Azure VM IIS Web Sever Endpoint

ADD ENDPOINT

Windows Azure VM IIS Web Sever Endpoint

ตั้งชื่อเป็น WEB และกำหนด PUBLIC/PRIVATE ให้เป็น Port : 80

Windows Azure VM IIS Web Sever Endpoint

ตอนนี้เราได้ Port : 80 สำหรับบริการ Web Server เรียบร้อยแล้ว

Windows Azure VM IIS Web Sever Endpoint

หลังจากนั้นให้ืดสอบการทำงานโดยเรียกจากเครื่อง Client เช่น http://thaicreate.cloudapp.net ถ้าปรากฏดังรูปแสดงว่าตอนนี้ VM ของเราได้กลายเป็น Server ที่ทำหน้าที่บริการ Web Server


การสร้าง Web Site บน IIS Web Server หลังจากที่ได้ IIS แล้ว ขั้นตอนถัดไปคือการสร้าง Web Site สำหรับ VM ซึ่งตอนนี้ VM ของเราทำงานภายใต้ thaicreate.cloudapp.net และเราจะใช้ชื่อนี้ในการสร้างเป็นชื่อเว็บ และการกำหนด Path ที่จัดเก็บไฟล์ของโปรแกรม

Windows Azure VM Windows Server FTP

เปิด IIS ที่ Start -> Administrative Tools -> Internet Information Services (IIS) Manager

Windows Azure VM Windows Server FTP

หน้าจอโปรแกรม IIS

Windows Azure VM Windows Server FTP

คลิกขวาที่ Sites -> Add Web Site...

Windows Azure VM Windows Server FTP

กรอกชื่อ Site name : (ชื่ออะไรก็ได้) จากนั้นกำหนด Path ที่จัดเก็บไฟล์ของโปรแกรม ซึ่งในตอนนี้กำหนดเป็น D:\thaicreate ส่วน Host name : จะต้องใส่ชื่อให้เหมือนกับ URL ของ VM เช่น thaicreate.cloudapp.net

จากนั้นให้ทดสอบการทำงานของ Web ด้วยการเปิดโฟเดอร์ D:\thaicreate ให้สร้างไฟล์ index.html

Windows Azure VM Windows Server FTP

ไฟล์ index.html จัดเก็บไว้ที่ D:\thaicreate\index.html

Windows Azure VM Windows Server FTP

คำสั่งง่าย ๆ ในไฟล์ index.html

Windows Azure VM Windows Server FTP

จากนั้นทดสอบเรียกจาก Client ถ้าแสดงผลดังรูปแสดงว่าตอนนี้ VM ของเราทำงานได้อย่างถูกต้อง








บทความถัดไปที่แนะนำให้อ่าน

   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2013-06-06 21:02:47 / 2017-03-24 16:47:06
  Download : No files
 Sponsored Links / Related

 
ขั้นตอนที่ 1 : การสร้าง VM ของ Windows Server บน VM - Windows Azure
Rating :

 
ขั้นตอนที่ 3 : การสร้าง Setup FTP Account และ FTP ไฟล์ไปที่ VM (Windows Server)
Rating :

 
ขั้นตอนที่ 4 : ติดตั้ง PHP สำหรับ IIS บน VM Windows Server ของ Windows Azure
Rating :

 
ขั้นตอนที่ 5 : การติดตั้ง MySQL และสร้าง User สำหรับ MySQL บน Windows Server
Rating :

 
ขั้นตอนที่ 6 : การติดตั้ง SMTP บน VM Windows Server เพื่อใช้สำหรับส่งอีเมล์ด้วย PHP
Rating :

 
ขั้นตอนที่ 7 : การแก้ไข CNAME เกำหนด Custom Domain เพื่อใช้งานจริงบน VM
Rating :

 
ขั้นตอนที่ 8 : การตรวจสอบ Scale , Monitor และรายละเอียดค่าบริการอื่น ๆ
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 03
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่