Google 计算引擎时区
Google Compute Engine time zone
我想知道为什么我位于 us-central1-a 区域的 google 计算引擎虚拟机 (Red Hat Enterprise Linux 7) 使用格林威治时区。 NTP 服务器不工作?
查看文档 CHAPTER 3. CONFIGURING THE DATE AND TIME:
By default, the system is configured to use UTC.
相应地 Coordinated Universal Time:
Coordinated Universal Time (or UTC) is the primary time standard by
which the world regulates clocks and time. It is within about 1 second
of mean solar time at 0° longitude, and is not adjusted for daylight
saving time. It is effectively a successor to Greenwich Mean Time
(GMT).
我在 us-central1-a
创建了测试虚拟机并检查了时间和 NTP status:
$ timedatectl
Local time: Mon 2020-05-11 08:50:18 UTC
Universal time: Mon 2020-05-11 08:50:18 UTC
RTC time: Mon 2020-05-11 08:50:18
Time zone: UTC (UTC, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
$ ntpstat
synchronised to NTP server (169.254.169.254) at stratum 3
time correct to within 1 ms
polling server every 64 s
一切看起来都像预期的那样。此外,我检查了其他区域的虚拟机并发现了相同的默认设置。
您可以按照说明更改时区 3.1.4. Changing the Time Zone:
To list all available time zones, type the following at a shell
prompt:
timedatectl list-timezones
To change the currently used time zone, type as root:
timedatectl set-timezone time_zone
Replace time_zone with any of the values listed by the timedatectl
list-timezones command.
我想知道为什么我位于 us-central1-a 区域的 google 计算引擎虚拟机 (Red Hat Enterprise Linux 7) 使用格林威治时区。 NTP 服务器不工作?
查看文档 CHAPTER 3. CONFIGURING THE DATE AND TIME:
By default, the system is configured to use UTC.
相应地 Coordinated Universal Time:
Coordinated Universal Time (or UTC) is the primary time standard by which the world regulates clocks and time. It is within about 1 second of mean solar time at 0° longitude, and is not adjusted for daylight saving time. It is effectively a successor to Greenwich Mean Time (GMT).
我在 us-central1-a
创建了测试虚拟机并检查了时间和 NTP status:
$ timedatectl
Local time: Mon 2020-05-11 08:50:18 UTC
Universal time: Mon 2020-05-11 08:50:18 UTC
RTC time: Mon 2020-05-11 08:50:18
Time zone: UTC (UTC, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
$ ntpstat
synchronised to NTP server (169.254.169.254) at stratum 3
time correct to within 1 ms
polling server every 64 s
一切看起来都像预期的那样。此外,我检查了其他区域的虚拟机并发现了相同的默认设置。
您可以按照说明更改时区 3.1.4. Changing the Time Zone:
To list all available time zones, type the following at a shell prompt:
timedatectl list-timezones
To change the currently used time zone, type as root:
timedatectl set-timezone time_zone
Replace time_zone with any of the values listed by the timedatectl list-timezones command.