zoukankan      html  css  js  c++  java
  • chronyd不同步的坑处理

    发现chronyd配置好后,状态也可以,就是没有同步

    systemctl status chronyd

    这个时候查看手册

    [root@POC_STRADE02 ~]# man chrony.conf |grep  maxdistance

    maxdistance distance
    The maxdistance directive sets the maximum allowed root distance of the sources to not be rejected by the source selection algorithm. The distance includes the accumulated dispersion, which might be large
    when the source is no longer synchronised, and half of the total round-trip delay to the primary source.

    By default, the maximum root distance is 3 seconds.

    Setting maxdistance to a larger value can be useful to allow synchronisation with a server that only has a very infrequent connection to its sources and can accumulate a large dispersion between updates of
    its clock.

    [root@POC_STRADE02 ~]#

    这段的坑是,当服务器重启后,读取硬件时钟的时间如果和chronyd同步的源时间相差3秒以上,就不会进行同步

    需要再配置文件里最后一行加一段配置,

    vim /etc/chrony.conf

    加入如下,我设置的是600秒

    maxdistance 600.0

  • 相关阅读:
    C++类中的封装-9
    递归神经网络
    卷积神经网络
    Tensorflow人工智能神经网络学习
    右键弹出菜单 并动态新增菜单子项
    sql 列转行
    sql 删除表中某字段的重复数据
    疑难问题解决
    jquery ashx交互 返回list 循环json输入信息
    jquery 控件赋值
  • 原文地址:https://www.cnblogs.com/liqing1009/p/15272721.html
Copyright © 2011-2022 走看看