在控制节点上执行这些步骤。
安装软件包:
# apt install chrony
编辑“/etc/chrony/chrony.conf”文件并在你的环境需要的情况下增加、修改或者删除这些键值:
server NTP_SERVER iburst
使用NTP服务器的主机名或者IP地址替换 NTP_SERVER
。配置支持设置多个 server
值。
注解
控制节点默认跟公共服务器池同步时间。但是你也可以选择性配置其他服务器,比如你组织中提供的服务器。
为了让其它节点连接到控制节点上的chrony守护程序,在“/etc/chrony/chrony.conf”文件中增加这个键值:
allow 10.0.0.0/24
重启 NTP 服务:
# service chrony restart
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.