yum -y install ntp

ntpdate 1.cn.pool.ntp.org # 根据网络时间校正

tzselect # 选择时区:5Asia->9 China->1->Beijing Time ->1 yes

echo 'TZ='Asia/Shanghai'; export TZ' > ~/.profile # 时区信息写入配置文件

hwclock -w  # 软件时间同步至硬件时间

date # 查看当前时间