chronyc

来源:互联网 发布:变更ip地址软件 编辑:程序博客网 时间:2024/06/10 22:36

For each client,  after installing chrony, modify the /etc/chrony/chrony.conf accordingly:
          - $ sudo vi /etc/chrony/chrony.conf
          - comment line 20~23
          - add at line 24: server <ip of your master>

 when everything setup, do $sudo /etc/init.d/chrony restart, 通常情况等5min左右会比较同步.

关于chrony的同步完成不是等5分钟那么简单。

是需要$ chronyc-n sources看对应的server前是不是变成星号了 

也可以用$ chronyc -n tracking看一下现在与server之间的时间差 

或$chronyc后在输入界面里用makestep命令强制当前时间改为server的时间,但是误差会比较大.


epuck setup in /etc/chrony/chrony.conf:

24 server ntp.cuhk.edu.hk


chronyc commands:

$ chronyc

chrony version 1.24, copyright (C) 1997-2002 Richard P. Curnow

chrony comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to redistribute it

under certain conditions.

See the GNU General Public License version 2 for details.

chronyc> sources

chronyc> tracking

password里面的密码写在/etc/chrony/chrony.keys里面
> password
> makestep


原创粉丝点击