rhel8 默认是chrony时间同步,没有ntp了,安装只能安装chrony
配置好rhel本地光盘dnf源后,安装chrony
dnf install chrony
配置:
vim /etc/chrony.conf
#pool 2.rhel.pool.ntp.org iburst
pool ntp1.aliyun.com iburst
添加阿里云的ntp1服务器作为同步源,将自带的rhel源删掉
systemctl restart chronyd
systemctl enable chronyd
完成时间同步配置