ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [Linux] ntpdate slew模式调整时间

[Linux] ntpdate slew模式调整时间

原创 Linux操作系统 作者:tolilong 时间:2017-02-10 10:02:04 0 删除 编辑

 ntpdate slew模式微调时间crontab,参考

[hostname]# crontab -l
* * * * * /usr/sbin/ntpdate -B xxx.xxx.xxx.xxx 1>>/tmp/ntpdate.log 2>&1


-B参数的意思          Force  the  time to always be slewed using the adjtime() system call, even if the measured
                            offset is greater than +-500 ms. The default is to step the time using  settimeofday()  if
                            the  offset  is greater than +-500 ms. Note that, if the offset is much greater than +-500
                            ms in this case, that it can take a long time (hours) to slew the  clock  to  the  correct
                            value. During this time. the host should not be used to synchronize clients.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-2133342/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1208664