1.# 时间同步
yum -y install ntp
2.# 设置开机自启
systemctl enable ntpd
3.# 启动
systemctl start ntpd
ntpdate -u cn.pool.ntp.org
hwclock --systohc
4.# 设置时区
imedatectl set-timezone Asia/Shanghai
1.# 时间同步
yum -y install ntp
2.# 设置开机自启
systemctl enable ntpd
3.# 启动
systemctl start ntpd
ntpdate -u cn.pool.ntp.org
hwclock --systohc
4.# 设置时区
imedatectl set-timezone Asia/Shanghai