Chrony時间网络服务器

chrony是互联网時间协议书(NTP)的通用性完成,chrony中包括2个程序,chronyd是一个能够在起动时起动的守卫程序,chronyc是一个指令行页面程序。

配备文档:chrony.conf

CentOS Linux release 7.6
安裝Chrony

yum install -y chrony
server端(10.120.123.8)

配备文档

vim/etc/chrony.conf
allow 10.120.123.0/24

起动服务

systemctl start chronyd.service
systemctl enable chronyd.service 

查询端口号

client端(10.120.123.9)

配备文档

vim/etc/chrony.conf
server 10.120.123.8 iburst
#server 0.centos. iburst
#server 1.centos. iburst
#server 2.centos. iburst
#server 3.centos. iburst

起动服务

systemctl start chronyd.service
systemctl enable chronyd.service 
查询同歩情况
1,chronyc sourcestats
210 Number of sources = 1
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
10.120.123.8 0 0 0 +0.000 2000.000 +0ns 4000Ms
2.chronyc sources -v
210 Number of sources = 1
 .-- Source mode '^' = server, '=' = peer, '#' = local clock.
 / .- Source state '*' = current synced, '+' = combined , '-' = bined,
| / '?' = unreachable, 'x' = time may be in error, '~' = time too variable.
|| .- xxxx [ yyyy ] +/- zzzz
|| Reachability register (octal) -. | xxxx = adjusted offset,
|| Log2(Polling interval) --. | | yyyy = measured offset,
|| \ | | zzzz = estimated error.
|| | | \
MS Name/IP address Stratum Poll Reach LastRx Last sample 
===============================================================================