设置 Linux 时区

mar*_*ton 1 linux localization time timezone

应该/etc/localtime(在 RHEL 5.3 下,我认为这并不重要)是:

  1. 一个符号链接 /usr/share/zoneinfo/whatever
  2. 硬链接 /usr/share/zoneinfo/whatever
  3. 一份 /usr/share/zoneinfo/whatever

我更喜欢 1),因为它通过 Puppet 管理起来很明确而且很容易,但它会破坏任何东西吗?RedHat 的默认看起来是 3)。编辑:我知道跨文件系统符号链接、tzdata 更新等的常见问题,但不知道历史上的 no-/usr-during-rc.sysinit 问题。谢谢大家!

kat*_*iel 6

3 是首选方法。这是由于旧错误导致具有单独 /usr 分区的系统将系统时间设置为 UTC,因为 /usr/share/zoneinfo 在 rc.sysinit 期间不可用。您可以在以下bugzilla 中查找