centos8使用chrony时间同步

2020-05-19  本文已影响0人  Firetheworld

安装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

上一篇下一篇

猜你喜欢

热点阅读