参考 : Linux CentOS 校正系统时间 - 宇的季节 - 博客园
安装NTP服务
yum -y install ntp
根据网络世界校正
ntpdate 1.cn.pool.ntp.org
选择时区(输入命令之后依次按数字键再回车: 5 -> 9 -> 1 ->1)
tzselect
时区信息写入配置文件
echo 'TZ='Asia/Shanghai'; export TZ' > ~/.profile
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
软件时间同步至硬件时间
hwclock -w
查看时间
date
END。