配置yum
使用yum命令来安装时间同步
yum install ntp -y
进入 /etc/ntp.conf
蓝色圈内的内容,在前面加上#号,在后方添加一行
重启ntpd服务:systemctl restart ntpd.service
时间同步完成