Centos7 下的NTP-server(Chorny) 部署及客户端时间同步配置

一、介绍

  1、本博客以 ceph 集群搭建时的NTP-server 为例。

  2、hosts

    # vim /etc/hosts

      10.6.32.20    ceph1     (作为时间服务器)

      10.6.32.21    ceph2   (作为 client)

二、安装、配置

  1、安装(所有节点)

    # yum -y install chrony

  2、编辑配置

    # vim /etc/chrony.conf

    a、服务器端 (配置允许时间同步的客户端网段)

      

    b、客户端(编辑时间服务器)

      

   3、重启服务(所有节点

    # systemctl restart chronyd.service

    # systemctl enable chronyd.service

三、时间同步

  # chronyc sources

  1、服务器端时间同步、同步国际时间

    

  2、客户端时间同步,同步ceph1的时间

    

 

部署完成!!!

 

 

      

 

posted @ 2018-03-12 14:47  语~默  阅读(1678)  评论(0编辑  收藏  举报