CentOS 如何修改时区

如果你需要使用美国东部时间。

只需要执行下面的命令就可以了:[root@us1 America]# cp /usr/share/zoneinfo/America/New_York /etc/localtime命令的执行情况:[root@bug ~]# date Wed Feb 8 05:00:04 UTC 2012 [root@bug ~]# cp /usr/share/zoneinfo/America/New_York /etc/localtime cp: overwrite `/etc/localtime'? y [root@bug ~]# date Wed Feb 8 00:05:13 EST 2012 [root@bug ~]# date Wed Feb 8 00:05:28 EST 2012