การติดตั้ง centos 7 -...

32
การติดตั้ง CentOS 7 -Installation -Install additional packages -Web server (HTTPD) -apache -php -โปรแกรม SSH Secure Shell -การ Forword port -โปรแกรมในตูKiosK

Upload: others

Post on 08-Oct-2019

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดตั้ง CentOS 7

-Installation -Install additional packages -Web server (HTTPD) -apache -php -โปรแกรม SSH Secure Shell -การ Forword port -โปรแกรมในตู้ KiosK

Page 2: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

www.centos.org

Page 3: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install
Page 4: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7: Boot from CD

Page 5: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : เลือกภาษา

Page 6: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7: ส่วนก าหนดค่าพื้นฐานของระบบ

Page 7: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7: Time Zone

Page 8: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Network

Page 9: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Network

Page 10: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7: Network

Page 11: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Network

Page 12: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Network

Page 13: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Disk Partition (Auto partition)

Page 14: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Disk Partition (Auto partition)

Page 15: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Disk Partition (Auto partition)

Page 16: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Disk Partition (Auto partition)

Page 17: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7

Page 18: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดตั้ง CentOS 7 : Username/Password

Page 19: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดตั้ง CentOS 7 : Username/Password

Page 20: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Username/Password

Page 21: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : Username/Password

Page 22: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7

Page 23: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7

Page 24: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การติดต้ัง CentOS 7 : พร้อมใช้งาน

เพื่อให้ง่ายในการทดสอบปฏิบัติใน Class นี ้จึงขอให้ท าการ Disable SELINUX ดังนี้ -ท าการแก้ไขไฟล์ /etc/selinux/configดังนี้

Page 25: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การเทียบเวลาเครื่องกบั Time server [root@server1 ~]# yum -y install ntpdate

ติดตัง้ apache [root@server1]# yum -y install httpd ติดตั้งเรียบร้อยให้สั่ง start และ ให้ service ท างานทุกครั้ง ตอน boot [root@server1]# systemctl start httpd.service [root@server1]# systemctl enable httpd.service

ติดตั้ง php [root@server1]# yum -y install php [root@server1]# yum -y install epel-release [root@server1]# yum -y install php-soap [root@server1]# yum -y install php-mysql

Page 26: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

ติดตั้งโปรแกรม SSH Secure Shell ดาวน์โหลดได้จากโปรแกรมได้จากhttp://cloudbox.3bb.co.th/share/Mjc0N3w4NjhiN2RmOTY0YjFhZjI0YzhjMGE5ZTQzYTMzMGM2YXwxNTk3

Page 27: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

คล๊ิก

Page 28: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

ท าการ Copy ข้อมูล ไปยัง /var/www/html

Page 29: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

การ Forward port

Page 30: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

โปรแกรมในตู้ KiosK

1. ติดตั้ง Windows 7,8,10 (64 bit) 2. ติดตั้ง appserv-win32-8.6.0 เมื่อติดตั้ง

appserv ท าการเปิด Folder appserv เลือก PHP Edit php.ini

Page 31: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

คลิ๊กท่ี PHP Edit php.ini แล้ว Search หาค าว่า soap

เมื่อหา soap เจอ ให้น าเครือ่งหมาย ; ออกจากบรรทัดนี้

Page 32: การติดตั้ง CentOS 7 - bps.moph.go.thbps.moph.go.th/new_bps/sites/default/files/5.2 server_ KiosK.pdf · ติดตั้ง apache [root@server1]# yum -y install

จากนั้นให้ท าการคลิ๊กที่ Apache Restart