- 安装chrony
yum install chrony -y
vim /etc/chrony.conf
修改chrony配置文件(替换默认的centos)
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
server ntp3.aliyun.com iburst
server ntp4.aliyun.com iburstallow 192.168.0.0/16 #允许NTP客户同步ip段 NTP同步时需要配置
- 启动chronyd服务,并加入开机自启
systemctl enable chronyd
systemctl enable chronyd - 验证效果
timedatectl
版权属于:
skwax
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论