时区修正
# 修改时区
tzselect --> 5,9,1,1
# 复制文件
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntp自动同步
yum install -y ntpdate
ntpdate ntp.aliyun.com
hwclock -w
手动修正
- 查看时间和日期
date - 设置时间和日期
date -s 11/03/2009
date -s 17:55:55 - 将当前时间和日期写入BIOS,避免重启后失效
hwclock -w