# ----- 设置时间同步+时区(上海) -----
rpm -qa ntp || yum -y install ntp systemctl enable ntpd timedatectl set-ntp true timedatectl set-timezone Asia/Shanghai
# ----- 设置时间同步+时区(上海) -----
rpm -qa ntp || yum -y install ntp systemctl enable ntpd timedatectl set-ntp true timedatectl set-timezone Asia/Shanghai
转载于:https://www.cnblogs.com/GNblog/p/10239822.html