1.安装:
yum install chrony -y
2.启动服务:
systemctl enable chronyd.service
systemctl start chronyd.service
3.查看服务状态:
systemctl status chronyd.service
4.配置chrony:
vi /etc/chrony
5.添加如下配置并保存:
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
server ntp3.aliyun.com iburst
server ntp4.aliyun.com iburst
6.重启服务:
systemctl restart chronyd.service
7.开放防火墙
firewall-cmd --add-service=ntp --permanent
firewall-cmd --reload