1.刪除本地時間並設置時區爲上海
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2.用date看下時間是否正確,不正確的話繼續下面的操作,使用ntp同步一下時間
3,yum -y install ntpdate ntp
4,ntpdate stdtime.sinica.edu.tw www.th7.cn
5,設置硬件時間和軟件時間的一致並校準
/sbin/hwclock --systoh