yum install chrony -y
systemctl start chronyd
systemctl enable chronyd
chronyc sources

vim /etc/chrony.conf

server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
server ntp3.aliyun.com iburst

同步

timedatectl set-timezone "Asia/Shanghai"
chronyc -a makestep
date

发表回复

您的电子邮箱地址不会被公开。

Captcha Code