COLO.in.th > คลังความรู้ > ความรู้เกี่ยวกับ Linux > ติดตั้ง NTP ให้ CentOS Sync เวลาให้อัตโนมัติ


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




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/

บทความนี้มีประโยชน์กับคุณหรือไม่ ?

บันทึกสู่รายการโปรดของฉัน บันทึกสู่รายการโปรดของฉัน    พิมพ์หัวข้อนี้ พิมพ์หัวข้อนี้

Also Read
Command Line (Linux Part I) (ดูรายละเอียด: 4523)
ติดตั้ง OpenVZ บน CentOS 6.0 64bit (ดูรายละเอียด: 1276)
Linux Firewall iptables (ดูรายละเอียด: 2799)
คำสั่งแตกไฟล์ zip (ดูรายละเอียด: 4771)

Powered by WHMCompleteSolution

ภาษา: