第一步:安装ntp服务 yum -y install ntp
第二步:开启开机启动服务 systemctl enable ntpd
第三步:启动服务 systemctl start ntpd
第四步:更改时区 timedatectl set-timezone Asia/Shanghai
第五步:启用ntp同步