调整Linux服务器时间和时区 - 解决时间不准造成的问题
修改时区为上海时间(北京时间和上海时区都是+8时区)
rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
修改系统日期和时间(以设定为1970年1月1日0点0分为例):
date -s 19700101 date -s 0000 hwclock -w
与时间服务器同步:
yum install -y ntp ntpdate us.pool.ntp.org