1. 163网易的yum源:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
2.中科大的yum源
wget http://centos.ustc.edu.cn/CentOS-Base.repo
3.sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
执行timedatectl命令
timedatectl
显示
Local time: 六 2017-06-24 02:20:19 CST Universal time: 五 2017-06-23 18:20:19 UTC RTC time: 五 2017-06-23 06:47:41 Time zone: Asia/Shanghai (CST, +0800) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: n/a
timedatectl list-timezones # 列出所有时区
timedatectl set-local-rtc 1 # 将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间
timedatectl set-timezone Asia/Shanghai # 设置系统时区为上海
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
date -s 指定时间