1, set the A-machine time server:
A, modify the/etc/ntp.conf as follows:
# undisciplined Local Clock. This was a fake driver intended for backup
# and when no outside source of synchronized time is available.
Server 127.127.1.0 # Local clock
#fudge 127.127.1.0 Stratum 10
B
/ETC/INIT.D/NTPD Start #启动时间服务器
Service NTPD Status
Service NTPD Start
C
[Email protected] etc]# ntpq-p
Remote refID St T when poll reach delay offset jitter
==============================================================================
*local (0). Locl. 5 L 59 64 377 0.000 0.000 0.000
D,chkconfig ntpd on #设置自启动
2. Set up client machines that need to be synchronized:
A
Modify the/etc/ntp.conf as follows:
# undisciplined Local Clock. This was a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 200.4.0.40 # Local clock time synchronization Server a machine
Fudge 200.4.0.40 Stratum 10
B
Service NTPD Status
Service NTPD Start
C, (only open/etc/init.d/ntpd start to see the following information)
[Email protected] etc]# ntpq-p
Remote refID St T when poll reach delay offset jitter
==============================================================================
200.4.0.40 LOCAL (0) 6 u 5 64 1 1.377-7077.8 0.000
D,chkconfig ntpd on #设置自启动
E, ntpdate-d 200.4.0.40