美文网首页
centos8使用chrony时间同步

centos8使用chrony时间同步

作者: Firetheworld | 来源:发表于2020-05-19 14:48 被阅读0次

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

相关文章

网友评论

      本文标题:centos8使用chrony时间同步

      本文链接:https://www.haomeiwen.com/subject/ltdbohtx.html