5. 开启NTP服务器
[root@ ntp-4.2.6p5]# service ntpd start Starting ntpd: [ OK ] or [root@ ntp-4.2.6p5]# /usr/local/ntp/bin/ntpd -c /etc/ntp.conf -p /tmp/ntpd.pid [root@ ntp-4.2.6p5]# ps -ef | grep ntp root 27562 1 0 16:56 ? 00:00:00 /usr/local/ntp/bin/ntpd -c /etc/ntp.conf -p /tmp/ntpd.pid6. 查看NTP服务器与权威NTP服务器的关系
[root@ ntp-4.2.6p5]# ntptrace -n ntp.api.bz ntp.api.bz: stratum 3, offset -0.001246, synch distance 0.115837 218.75.4.130: stratum 2, offset 0.002165, synch distance 0.105875 66.220.9.122: stratum 1, offset -0.000004, synch distance 0.000447, refid 'CDMA'7. 查看NTP服务器与权威NTP服务器的状态
[root@ ntp-4.2.6p5]# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== *219.239.93.23 218.75.4.130 3 u 128 128 377 4.239 40.777 8.788 +210.72.145.44 .ACTS. 1 u 9 64 163 27.135 36.602 25.212 LOCAL(0) .LOCL. 10 l 800 64 0 0.000 0.000 0.000