首页 > 系统服务 > 详细

Linux - Chrony时间同步

时间:2021-06-06 13:32:51      阅读:18      评论:0      收藏:0      [点我收藏+]
# step 1 - install packages
[09:50:34 root@centos8 ~]#yum -y install chrony

# step 2 - edit chrony.conf 
[09:50:51 root@centos8 ~]#rpm -ql chrony
/etc/NetworkManager/dispatcher.d/20-chrony
/etc/chrony.conf
/etc/chrony.keys
/etc/dhcp/dhclient.d/chrony.sh

# step 3 - set the time server and allow
[09:56:13 root@centos8 data]#cat /etc/chrony.conf 
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server ntp.aliyun.com iburst
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst

# Allow NTP client access from local network.
allow 10.0.0.0/24

# step 4 - install bind at client and edit configure file
add server as the main server
[09:59:17 root@centos8 data]#cat /etc/chrony.conf 
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 10.0.0.3 iburst

 

Linux - Chrony时间同步

原文:https://www.cnblogs.com/noise/p/14854632.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!