RHEL6修改系统时区:
(1)编辑 vim /etc/sysconfig/clock,将ZONE改成:
ZONE="Asia/Shanghai"

(2)删除文件rm -rf /etc/localtime

(3)创建连接
[root@ctm9018 ~]# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RHEL7修改系统时区:
[root@localhost ~]# timedatectl status 查看时区,status可以省略不写
[root@localhost ~]# timedatectl list-timezones 显示系统所有可用时区
[root@localhost Asia]# timedatectl set-timezone Asia/Shanghai 设置时区为亚洲/上海,重启系统设置仍然有效

如果在RHEL7中没有timedatectl命令,我们可以直接修改/etc/localtime的链接源。时区的文件都放在/usr/share/zoneinfo/目录中,我们直接改变/etc/localtime文件的链接源即可,需要重启系统生效
[root@localhost ~]# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 将localtime的链接源修指向Shanghai,就设定了时区为亚洲/上海,需重启系统后生效