🍌Install NTP on Oracle Linux
Install
ทำการติดตั้ง Package
yum install ntp -yทำการแก้ไขไฟล์ /etc/ntp.conf เลือกตาม NTP Pool Zone in Thailand คำเตือนหากไม่ระบุ iburst จะไม่ทำการ Sync ทันที ดังนั้นควรระบุ
vi /etc/ntp.confserver 3.th.pool.ntp.org iburst
server 0.asia.pool.ntp.org iburst
server 2.asia.pool.ntp.org iburstกรณีที่ต้องการใช้ NTP Server อื่นของไทย
vi /etc/ntp.confserver time.navy.mi.th iburst
server time1.nimt.or.th iburst
server clock.nectec.or.th iburstทำการ Enable Firewall
iptables -I INPUT -p udp -m udp --dport 123 -j ACCEPTservice iptables saveทำการ Start Service NTP
ทำการกำหนดให้ Start ทุกครั้งที่ Restart เครื่อง
ทำการตรวจสอบ List of Peers ด้วย NTP Query
ทำการแสดง Network Time Synchronization ด้วย NTP Stat
ทำการตรวจสอบ Date
ทำการสร้าง Crontab
อ่านเพิ่มเติม : https://bit.ly/38E7ROy, https://bit.ly/35tDSaq
Last updated
Was this helpful?