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
完成時間同步配置