CentOS8 系统时间同步设置
1、安装chrony
sudo yum install -y chrony
2、编辑配置文件
vi /etc/chrony.conf
注释掉 pool 2.centos.pool.ntp.org.iburst
然后增加如下两行
server ntp.aliyun.com iburst
server cn.ntp.org.cn iburst
3、启动和设置配置文件
sudo systemctl start chronyd
sudo systemctl enable chronyd
4、时间与时区查看
timedatectl