在/etc/profile中设置TZ:export TZ=Asia/Shanghai or export TZ=GMT
[oracle@oracle ~]$ cat /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="Asia/Shanghai"
UTC=true
ARC=false
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
阅读(681) | 评论(0) | 转发(0) |