1.配置ntp时间服务器,确保客户端主机能和服务主机同步时间
服务器192.168.235.133,客户端192.168.235.134
准备工作
[root@client ~]# rpm -qa |grep chrony
chrony-4.1-1.el8.x86_64
[root@client ~]# systemctl is-active chronyd
active
#同步时间
[root@server ~]# vim /etc/chrony.conf
pool s1b.time.edu.cn iburst
local stratum 10
allow 192.168.235.134
#关闭防火墙
[root@server ~]# systemctl stop firewalld
#关闭selinux
[root@server ~]# setenforce 0
#重启服务
[root@server ~]# systemctl restart chronyd
在客户端上配置
[root@client ~]#