
ภายใต้ Server Manager เลือก Manager -> Add Roles and Features

เลือก Next

เลือก Rule-based or feature-based installation

เลือก Select a server from the server pool และ Next ตามลำดับ

ภายใต้ Web Server ให้เลือก Web Server (IIS) -> FTP Server

เลือก Install

ติดตั้งโปรแกรมเรียบร้อยแล้ว
จากนั้นให้เปิด IIS Web Server โดยไปที่
Server Manager -> Tools -> Internet Information Services (IIS) Manager

คลิกขวาที่ Site เลือก Add FTP Sites...

ตั้งชื่อ FTP site name : ในที่นี้กำหนดชื่อ FTP Content และกำหนด Path ของโปรแกรม

กำนหนด Port เป็น 21 และเลือก No SSL

Authentication เลือกเป็น Basic และในส่วนของ Authorization เลือก User ที่จะสามารถ FTP ได้ ในที่นี้ผมใช้ User : thaicreate หรือจะกำหนด All Users ก็ได้เช่นเดียวกัน

ตอนนี้ได้ FTP Account เรียบร้อยแล้ว
ขั้นตอนถัดไปคือการเปิด Firewall ให้สามารถ FTP ผ่าน Port 21 ได้

เลือก Server Manager -> Tools -> Windows Firewall with Advanced Security

ในส่วนของ Inbound Rules -> New Rule...

เลือก Port

เลือก Port เป็น 21

เลือก Allow the connection

ตั้งชื่อ Rule ในที่นี้ตั้งให้เหมือนกับ FTP Content

ตอนนี้เราได้ Rule ที่เป็น Inbound ไว้สำหรับ FTP ผ่าน Port 21 เรียบร้อยแล้ว

จากนั้นให้ FTP ผ่านโปรแกรม FTP ตรง Host จะใช้เป็น IP (หรือโดเมนในกรณีที่แก้ไข DNS แล้ว) และกรอก Username และ Password และถ้าไม่มีอะไรถูกต้องเราจะพบกับไฟล์ที่อยู่บน Server

ไฟล์ index.html ที่อยู่บน Server

ให้ทำการ Upload ไฟล์จากเครื่องของเราไปไว้บน Server ผ่านการ FTP

เมื่อกลับไปดูไฟล์บน Server เราจะเห็นไฟล์ต่าง ๆ ที่เราได้ทำการ FTP Upload ขึ้นไปผ่านโปรแกรม FTP
สำหรับการสร้าง FTP บน Windows Server 2008 ก็มีเพียงต่าง ๆ เท่านี้ และสามารถสร้างได้ง่าย ๆ โดยไม่มีขั้นตอนที่ยุ่งยากหรือซับซอนเลย
ไม่มีความคิดเห็น:
แสดงความคิดเห็น