安装chronyc后,编辑配置文件,添加ntp服务器地址,重启生效,并开机启动
dnf instal -y chronyc
$ cat /etc/chrony.conf |grep server
# Use public servers from the pool.ntp.org project.
server 10.17.87.8
systemctl restart chronyd && systemctl enable chronyd
查看状态:
$chronyc sources
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 10.17.87.8 11 6 177 12 -54us[ -102us] +/- 14ms
网友评论