前言

Centos8开始取消了ntp同步时间,改为chrony同步

chrony工具安装

yum -y install chrony

修改配置文件

将配置文件中的同步服务器修改为国内的时间服务器(推荐阿里及腾讯),将原配置文件中的server注释掉,第三行,换成国内的服务器

vim /etc/chrony.conf 
server ntp.aliyun.com iburst
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst

Linux系列(40) - 自动同步时间chrony

重启服务并配置为开机启动

step-1:systemctl enable --now chronyd
step-2:重启Linux服务器

查看时间是否同步

date

 

相关文章:

  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2022-01-21
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
猜你喜欢
  • 2021-05-06
  • 2021-08-20
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-01-21
  • 2022-02-10
相关资源
相似解决方案