yum install ntp
vi /etc/ntp.conf
增加server 127.127.1.0 iburst
systemctl start ntpd.service
systemctl enable ntpd.service
chronyd服务可能会和ntp有冲突,这里关闭
systemctl stop chronyd
systemctl disable chronyd
查看ntp服务
ntpstat
修改时间
timedatectl set-time HH:MM:SS