其它节点服务器

其他节点会连接控制节点同步时间。在所有其他节点执行这些步骤。

安装并配置组件

  1. 安装软件包。

    适用于 Ubuntu:

    # apt install chrony
    

    适用于 RHEL 和 CentOS:

    # yum install chrony
    

    适用于 SUSE:

    # zypper install chrony
    
  2. Configure the chrony.conf file and comment out or remove all but one server key. Change it to reference the controller node.

    如果是 RHEL、 CentOS 和 SUSE,编辑 /etc/chrony.conf 文件:

    server controller iburst
    

    如果是Ubuntu, 编辑 /etc/chrony/chrony.conf 文件:

    server controller iburst
    
  3. 注释掉``pool 2.debian.pool.ntp.org offline iburst``这行

  4. 重启NTP服务

    适用于 Ubuntu:

    # service chrony restart
    

    适用于RHEL、 CentOS 和 SUSE:

    # systemctl enable chronyd.service
    # systemctl start chronyd.service