chronyd是一个时间同步服务程序
当前操作系统版本:
代码语言:javascript复制[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.7 (Maipo)
它的配置文件是:
代码语言:javascript复制/etc/chrony.conf
时间服务器采用:阿里云NTP服务器
代码语言:javascript复制https://www.alibabacloud.com/help/zh/doc-detail/92704.htm
代码语言:javascript复制# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
server ntp3.aliyun.com iburst
server ntp4.aliyun.com iburst
服务没有启动时同步时间
代码语言:javascript复制chronyc tracking
代码语言:javascript复制[root@localhost ~]# chronyc tracking
506 Cannot talk to daemon
服务启动后同步时间
同步命令
代码语言:javascript复制chronyc tracking
代码语言:javascript复制[root@localhost ~]# chronyc tracking
Reference ID : CB6B0658 (203.107.6.88)
Stratum : 3
Ref time (UTC) : Fri Feb 14 14:18:46 2020
System time : 0.000002380 seconds fast of NTP time
Last offset : -0.001657576 seconds
RMS offset : 0.001657576 seconds
Frequency : 0.000 ppm slow
Residual freq : -47.654 ppm
Skew : 1000000.000 ppm
Root delay : 0.030800328 seconds
Root dispersion : 11.289466858 seconds
Update interval : 2.1 seconds
Leap status : Normal