gpt4 book ai didi

google-cloud-platform - 谷歌计算引擎时区

转载 作者:行者123 更新时间:2023-12-04 13:14:25 25 4
gpt4 key购买 nike

我想知道为什么我位于 us-central1-a 区域的谷歌计算引擎虚拟机(红帽企业 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 创建了测试 VM和检查时间和 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

一切看起来都像预期的那样。此外,我检查了其他区域中的 VM,发现相同的默认设置。

您可以按照说明更改时区 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.

关于google-cloud-platform - 谷歌计算引擎时区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61695144/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com