一、方案一
查看系统时间与硬件时间
# 查看系统时间
date
# 查看硬件时间
hwclock
删除本地时间
rm -rf /etc/localtime
创建软连接
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
时间同步
yum -y install ntp ntpdate
ntpdate ntp1.aliyun.com
校准硬件时间和软件时间一致
/sbin/hwclock --systohc
检查时间
date
hwclock
二、方案二
tzselect
输入5回车
输入9回车
输入1回车
选择1回车
查看日期