一、controller节点安装ntp
1 安装ntp服务
2 Edit the chrony.conf file and add, change, or remove the following keys as necessary for your environment.
edit the /etc/chrony.conf, 服务选择阿里云的ntp服务器。
3 To enable other nodes to connect to the chrony daemon on the controller node, add this key to the same chrony.conf file mentioned above:
4 Restart the NTP service:
二、其他节点安装ntp
1 安装ntp服务
2 Configure the chrony.conf file and comment out or remove all but one server key. Change it to reference the controller node.
edit the /etc/chrony.conf file:
3 Restart the NTP service.
三、Verify operation
1 Run this command on the controller node:
2 Run the same command on all other nodes: