Bài 4:Cấu hình NTP Server tren CentOS 6

Tìm hiểu thêm về NTP http://kienthucit.net/gioi-thieu-ntp-server/

Cấu hình NTP để điều chỉnh thời gian.
[root@dlp ~]# yum -y install ntp
[root@dlp ~]# vi /etc/ntp.conf
# line 19: add the network range you allow to receive requests
restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
# change servers for synchronization
#server 0.rhel.pool.ntp.org
#server 1.rhel.pool.ntp.org
#server 2.rhel.pool.ntp.org
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp
[root@dlp ~]# /etc/rc.d/init.d/ntpd start 

Starting ntpd:[ OK ]

[root@dlp ~]# chkconfig ntpd on 

[root@dlp ~]# ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp1.jst.mfeed. 210.173.160.56   2 u    8   64    1   24.214  1449.94   0.000
 ntp2.jst.mfeed. 210.173.160.56   2 u    7   64    1   31.454  1445.03   0.000
 ntp3.jst.mfeed. 210.173.160.86   2 u    6   64    1   26.589  1448.61   0.000