본문 바로가기
Dev/Linux

[Linux] Timezone 설정

by 흰바다제비 2022. 7. 27.
728x90

-     timezone 정보 확인

timedatectl

예시

[root@localhost ~]# timedatectl
      Local time: Tue 2022-06-21 20:14:24 EDT
  Universal time: Wed 2022-06-22 00:14:24 UTC
        RTC time: Wed 2022-06-22 00:14:25
       Time zone: America/New_York (EDT, -0400)
     NTP enabled: n/a
NTP synchronized: no
 RTC in local TZ: no
      DST active: yes

 

 

-     Seoul timezone 확인

timedatectl list-timezones | grep Seoul

예시

[root@localhost ~]# timedatectl list-timezones | grep Seoul
Asia/Seoul

 

-     Seoultimezone 변경

timedatectl set-timezone Asia/Seoul

 


적용 후 timezone 확인

[root@localhost ~]# timedatectl 
      Local time: Wed 2022-06-22 09:14:51 KST
  Universal time: Wed 2022-06-22 00:14:51 UTC
        RTC time: Wed 2022-06-22 00:14:52
       Time zone: Asia/Seoul (KST, +0900)
     NTP enabled: n/a
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a
728x90

'Dev > Linux' 카테고리의 다른 글

[Linux] Oracle JDK 설치  (0) 2022.07.29
[Linux] hostname 변경  (0) 2022.07.28
[Linux] VirtualBox에 CentOS7 설치  (0) 2022.07.08
[CentOS 7] Oracle JDK 설치  (0) 2021.04.11
[CentOS 7] Redis HA 구성 - Redis Sentinel  (0) 2021.04.11

댓글