วันพุธที่ 17 ตุลาคม พ.ศ. 2555

วิธีการลง NTP (Network Time Protocol) Server Ubuntu

#การติดตั้ง NTP Server (Time Server) ใน ubuntu

apt-get install ntp
# หรือ
aptitude install ntp
# config-file จะอยู่ที่ directory /etc/ntp.conf
vi /etc/ntp.conf
# ปิดของเดิม
# server ntp.ubuntu.com
# เพิ่ม Server เข้าไป
server time.navy.mi.th dynamic
server clock.nectec.or.th prefer
# อัปเดท time แบบแต่ละครั้ง
ntpdate -u time.navy.mi.th
# หรือ
ntpdate -u clock.thaicert.nectec.or.th
        # จากนั้น start service ของ ntp ด้วยคำสั่ง
        /etc/ntp/init.d/ntp restart
       # ตั้ง Command ลงไปใส่ crontab


###  CentOS   >>  http://hosxp.net/smf/index.php?topic=6922.0http://hosxp.net/smf/index.php?topic=6922.0