CentOS6更新系统时间

# 设置时区
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 安装ntpdate
yum -y install ntpdate
# 联网更新时间,如果成功,将系统时间写入BOIS
ntpdate time.windows.com && hwclock -w
posted @ 2019-10-09 20:47  凭栏知潇雨  阅读(858)  评论(0编辑  收藏  举报