งานนำเสนอกำลังจะดาวน์โหลด โปรดรอ

งานนำเสนอกำลังจะดาวน์โหลด โปรดรอ

Web Server IPV4/IPV6.

งานนำเสนอที่คล้ายกัน


งานนำเสนอเรื่อง: "Web Server IPV4/IPV6."— ใบสำเนางานนำเสนอ:

1 Web Server IPV4/IPV6

2 Web Server : โดย บุญลือ อยู่คง
# yum install lynx –y # yum install httpd php mysql –y # yum install mod_ssl -y 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

3 Uninstall & Rename Uninstall # yum erase bind bind-chroot bind-utils Rename file # mv oldfile newfile 24 พฤษภาคม 2561 IPv6 โดย บุญลือ อยู่คง

4 IPv6/v4 Dual Stack web server
แก้ไข configuration # vi /etc/httpd/conf/httpd.conf Listen :80 Listen [2403:6200:8841:1329::5]:80 Listen 80 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

5 เตรียมพร้อมก่อนติดตั้ง
# yum install epel-release ถ้าติดตั้งไม่ได้ให้ download มาติดเอง # wget # rpm -Uvh epel-release-latest-6.noarch.rpm ถ้าเป็น webserver ที่ใช้ php version ใหม่ ๆ ต้อง # wget # rpm -Uvh remi-release-6.rpm 24 พฤษภาคม 2561 Internet Server IPV6 : Boonlue Yookong, 2017.

6 Web Server : โดย บุญลือ อยู่คง
# yum httpd php mysql 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

7 Web Server : โดย บุญลือ อยู่คง
# yum install mod_ssl 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

8 # vi /etc/httpd/conf/httpd.conf
24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

9 Web Server : โดย บุญลือ อยู่คง
test # chkconfig httpd on # /etc/init.d/httpd restart # yum install lynx -y # ps ax|grep httpd # netstat -tan |grep 80 # lynx 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

10 Web Server : โดย บุญลือ อยู่คง
ip6tables # vi /etc/sysconfig/ip6tables # /etc/init.d/ip6tables restart 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

11 ปรับแต่ง configuration
หลังจากทดลองอย่างง่าย เพื่อทำให้ web server ทำงานได้แล้ว # vi /etc/httpd/conf/httpd.conf ค้นหาบรรทัดที่มีข้อความ ServerAdmin ปกติอยู่บรรทัดที่ 262 ค่าเดิมเป็น ServerAdmin แก้ไขเป็น ServerAdmin ( Address ของผู้ดูแลระบบ) 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

12 ปรับแต่ง configuration
จากนั้นให้ค้นหาบรรทัด ที่มีข้อความ # ServerName (อยู่บรรทัดที่ 277) ค่าเดิมเป็น # ServerName เพิ่มบรรทัดใหม่เป็น (ลบเครื่องหมาย # ออก) ServerName 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

13 ปรับแต่ง configuration
# vi /etc/httpd/conf/httpd.conf #UserDir disable ให้ใส่เครื่องหมาย # หน้าบรรทัดนี้ UserDir public_html แล้วให้ลบเครื่องหมาย # หน้าบรรทัดที่ 375 ออกด้วย จากนั้นให้สั่ง restart # /etc/init.d/httpd restart 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

14 ปรับแต่ง configuration
การกำหนดแฟ้มแรกของ Webpage ให้มีชื่อต่างจากตัวหลักที่มีอยู่เดิมคือ index.html และ index.html.var ถ้าต้องการชื่อไฟล์อื่น ๆ เพิ่มเติม โดยแก้ไขดังนี้ (อยู่บรรทัดที่ 404 ) เดิมเป็น DirectoryIndex index.html index.html.var แก้ไขเป็น DirectoryIndex index.html index.php index.htm Default.htm 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

15 Web Server : โดย บุญลือ อยู่คง
SSL # vi /etc/httpd/conf.d/ssl.conf #Listen 443 Listen [2403:6100:ffd9::146]:443 # /etc/init.d/httpd restart 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

16 Web Server : โดย บุญลือ อยู่คง
ip6tables # vi /etc/sysconfig/ip6tables # /etc/init.d/ip6tables restart 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

17 Web Server : โดย บุญลือ อยู่คง
Virtual Host # vi /etc/sysconfig/network-scripts/ifcfg-eth0 # /etc/init.d/network restart 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

18 Web Server : โดย บุญลือ อยู่คง
Virtual Host # ifconfig eth0 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

19 Web Server : โดย บุญลือ อยู่คง
Virtual Host # vi /var/named/sample.co.th.zone 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

20 Web Server : โดย บุญลือ อยู่คง
Virtual Host # vi /var/named/sample.co.th.rev # /etc/init.d/named restart 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

21 Web Server : โดย บุญลือ อยู่คง
Virtual Host ทดสอบด้วยการ ping # ping6 sale.sample.co.th 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

22 Web Server : โดย บุญลือ อยู่คง
Virtual Host แก้ไขไฟล์ httpd.conf # vi /etc/httpd/conf/httpd.conf 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

23 Web Server : โดย บุญลือ อยู่คง
Virtual Host ให้ทำการ copy ทั้ง 7 บรรทัดออกมา 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

24 Web Server : โดย บุญลือ อยู่คง
Virtual Host กำหนดใน DocumentRoot /home/sale/www ให้ทำการ Add User ให้กับผู้ที่ทำหน้าที่ Upload Webpage เพื่อให้สิทธิในการนำข้อมูลเข้าไปบันทึก ใน Home Directory ของตนเอง ในตัวอย่างนี้กำหนดให้เป็น /home/sale 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

25 Web Server : โดย บุญลือ อยู่คง
Virtual Host # useradd sale # passwd sale กำหนด Password ให้กับ sale New UNIX password : ******* Retype UNIX password : ******* Passwd : all authentication tokens update successfully # ls -l /home # chmod 711 /home/sale 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

26 Web Server : โดย บุญลือ อยู่คง
Virtual Host login sale $ pwd $ /home/sale $ chmod 755 /h ome/sale ให้สร้าง directory เพื่อเก็บเนื้อหาเว็บแยกต่างหากจากข้อมูลของ home directory ในตัวอย่างให้สร้าง directory ชื่อ www $ mkdir www ทดลองสร้าง File ชื่อ index.html แล้วทดสอบเรียกเว็บดู 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

27 Web Server : โดย บุญลือ อยู่คง
Virtual Host (SSL) # vi /etc/httpd/conf.d/ssl.conf 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

28 Web Server : โดย บุญลือ อยู่คง
Virtual Host (SSL) ให้ทำการ copy ตั้งแต่บรรทัดที่ 75 จนจบไฟล์ แก้ไขเหมือน port 80 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

29 Web Server : โดย บุญลือ อยู่คง
Virtual Host (SSL) # /etc/init.d/httpd restart ให้ทำการทดสอบโดยใช้ web browser # lynx หรือ # lynx 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง

30 Web Server : โดย บุญลือ อยู่คง
Virtual Host Q & A 24 พฤษภาคม 2561 Web Server : โดย บุญลือ อยู่คง


ดาวน์โหลด ppt Web Server IPV4/IPV6.

งานนำเสนอที่คล้ายกัน


Ads by Google