ติดตั้ง NTP ให้ CentOS Sync เวลาให้อัตโนมัติ พิมพ์

  • 2

1. ทำการติดตั้ง ntp

yum -y install ntp

2. แก้ไขไฟล์ config ของ ntp โดยใส่บรรทัด server th.pool.ntp.org เข้าไปในไฟล์ config นี้

nano /etc/ntp.conf

3. สั่ง Restart Service NTP

service ntpd restart
chkconfig ntpd on

4. สามารถตรวจสอบสถานะการทำงานได้โดย

ntpq -pn


ที่มา http://www.palm.in.th/2012/ntp-centos-sync-time-automatically/

คำตอบนี้เป็นประโยชน์หรือไม่?

« กลับ