cenos7.1 安装openstack kilo 心得之三添加网络时间协议

来源:互联网 发布:全球经济数据时时播报 编辑:程序博客网 时间:2024/05/19 20:21

网络时间协议(NTP)
      您必须安装 NTP 来正确地在各个节点之间同步服务。我们推荐您配置控制节点来关联更准确
      的 (下层的) 服务器,然后将其他节点与控制节点关联。

控制节点服务器

   安装 NTP 服务
     # yum install ntp
   配置 NTP 服务
     默认情况下,控制节点通过有个公共服务器的池来同步时间。但是,您也可以选择修改配置
    文件 /etc/ntp.conf 来配置选择的服务器,例如,您的组织中自行提供的服务器。
   1. 修改配置文件 /etc/ntp.conf 并根据您环境的需要添加、修改或删除以下关键字:

    #vi /etc/ntp.conf
    server NTP_SERVER iburst
    restrict -4 default kod notrap nomodify
   restrict -6 default kod notrap nomodify
   将其中的 NTP_SERVER 替换为主机名或一个更准确的 (lower stratum) NTP 服务器的 IP
   地址。这个配置支持多个 server 关键字。

  2. 启动 NTP 服务将将其配置为随系统启动:
  # systemctl enable ntpd.service
  # systemctl start ntpd.service

其它节点服务器
    安装 NTP 服务
    # yum install ntp
   配置 NTP 服务
   配置网络节点和计算节点以引用控制节点。
1. 修改配置文件 /etc/ntp.conf:
     server controller iburst
2. 启动 NTP 服务将将其配置为随系统启动:
# systemctl enable ntpd.service

# systemctl start ntpd.service

0 0
原创粉丝点击