CentOS8同步时间

使用了chrony模块

dnf install chrony
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
 

systemctl restart chronyd
systemctl enable chronyd
//立即同步一次
chronyc sources -v

EST转CST

\cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

 

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

posted @ 2020-09-02 14:14  b̶i̶n̶g̶.̶  阅读(240)  评论(0编辑  收藏  举报