Centos 6查看时区: [root@localhost ~]# cat /etc/sysconfig/clock # The time zone of the system is defined by the contents of /etc/localtime. # This file is only for evaluation by system-config-date, do not rely on its # contents elsewhere. ZONE="Asia/Shanghai"
Centos 7查看时区: [root@localhost ~]# timedatectl | grep "Time zone" Time zone: Asia/Shanghai (CST, +0800)