구글 클라우드 (Google Cloud) 에서 Compute Engine의 VM 인스턴스 Time zone 변경하는 방법

View: 420 0 0
작성자: 달빛제이크
카테고리: Google Cloud
발행: 2024-02-25 수정 2024-07-30

안녕하세요. 달빛제이크 입니다.

Google Cloud Compute Engine의 VM 인스턴스에서 Time zone을 변경하려면 아래와 같이 진행합니다.

// 현재 설정 확인
    $ timedatactl
               Local time: Sat 2024-02-24 13:17:33 UTC
           Universal time: Sat 2024-02-24 13:17:33 UTC
                 RTC time: Sat 2024-02-24 13:17:34
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: inactive
          RTC in local TZ: no
// 설정할 수 있는 Time Zone 확인
    $ timedatectl list-timezones
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Bamako
...
Asia/Seoul
Asia/Shanghai
Asia/Singapore
Asia/Srednekolymsk
Asia/Taipei
...

// Time Zone을 변경합니다.
    $ timedatectl set-timezone Asia/Seoul
// 변경된 Time Zone을 확인합니다.
    $ timedatectl
               Local time: Sat 2024-02-24 22:19:10 KST
           Universal time: Sat 2024-02-24 13:19:10 UTC
                 RTC time: Sat 2024-02-24 13:19:11
                Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
              NTP service: inactive
          RTC in local TZ: no

변경된 Time Zone을 웹 서버에 반영하려면 웹 서버를 Restart 해 줍니다.

감사합니다.

Previous

There is no article.

Next

There is no article.

comments 0