1.编辑配置文件

vi /etc/chrony.conf

在配置文件中追加(将server后的IP改为时间服务器IP):

server 0.cn.pool.ntp.org iburst  

中国大陆用户时间服务器地址推荐:

server 0.cn.pool.ntp.org
server 1.cn.pool.ntp.org
server 2.cn.pool.ntp.org
server 3.cn.pool.ntp.org

或者:

cn.pool.ntp.org
ntp.aliyun.com
ntp.tencent.com
time.apple.com
time.windows.com

注意:如果是内网无法外联服务器,则改为内网的ntp服务器地址。

保存配置。

2.执行命令重启服务

systemctl restart chronyd

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐