linux 时区设置
tzselect命令只告诉你选择的时区的写法,并不会生效。所以现在它还是东8区北京时间。
root@new55 ~]# date -R Mon, 06 Dec 2010 10:46:11 +0800
示例三通过更改配置文件来修改时区
[root@new55 ~]# 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