一、服务器端配置
关闭防火墙:
systemctl stop firewalld.service
setenforce 0
安装软件
yum install chrony -y
vim /etc/chrony.conf
保存退出启动服务systemctl restart chronyd.service
systemctl enable chronyd.service
二、客户端配置:
安装:yum install chrony -y
编辑vim /etc/chrony.conf
systemctl restart chronyd
服务器与客户端要在同一时区
修改时区
timedatectl set-timezone Asia/Shanghai