CentOS8同步时间

使用了chrony模块

1.dnf install chrony
2.vim /etc/chrony.conf

  # Use public servers from the pool.ntp.org project.
  # Please consider joining the pool (http://www.pool.ntp.org/join.html).
  #pool 2.centos.pool.ntp.org iburst
  server 210.72.145.44 iburst
  server ntp.aliyun.com iburst
 

3.systemctl restart chronyd.service
4.chronyc sources -v

参考:https://blog.csdn.net/baozi_xiaoge/article/details/103823996

原文地址:https://www.cnblogs.com/gaobing/p/13601413.html