CentOS7下使用chrony替代ntp时间服务器

原创
2018/12/13 17:23
阅读数 3.8K

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

 

 

      

          

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
1
分享
返回顶部
顶部