[[email protected] ~]# yum install -y chrony
允许客户机访问本台服务器
[[email protected] ~]# vim /etc/chrony.conf
[[email protected] ~]# systemctl restart chronyd
查看一下时间
我客户端用到的是7的镜像
[[email protected] ~]# yum install -y chrony
[[email protected] ~]# vi /etc/chrony.conf
重启服务
[[email protected] ~]# systemctl restart chronyd
服务器
[[email protected] ~]# date
2020年 10月 29日 星期四 22:28:42 CST
客户端
[[email protected] ~]# date
Thu Oct 22 01:14:25 EDT 2020
重启服务
[[email protected] ~]# systemctl restart chronyd
查看时间
[[email protected]calhost ~]# date
2020年 10月 29日 星期四 22:30:16 CST
设置开机自启动
[[email protected] ~]# systemctl enable chronyd
记得关闭防火墙
[[email protected] ~]# yum install -y postfix
[[email protected] ~]# systemctl stop firewalld
[[email protected] ~]# setenforce 0
[[email protected] ~]# vim /etc/postfix/main.cf
[[email protected] ~]# systemctl restart postfix