IT관심분야/Linux
[CentOS7] 시스템 시간 타임존 변경(timedatectl)
플랜액터
2018. 2. 28. 10:02
현재 시스템 시간의 타임존 설정을 변경하는 방법
Asia/Shanghai -> Asia/Seoul
1. 현재 시스템 타임존 확인
# timedatectl
Local time: Wed 2018-02-28 08:51:56 CST
Universal time: Wed 2018-02-28 00:51:56 UTC
RTC time: Wed 2018-02-28 00:51:56
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
2. 타임존 설정 리스트 확인
# timedatectl list-timezones | grep Asia/S
Asia/Sakhalin
Asia/Samarkand
Asia/Seoul
Asia/Shanghai
Asia/Singapore
Asia/Srednekolymsk
3. 시스템 타임존 설정
# timedatectl set-timezone Asia/Seoul
4. 시스템 타임존 확인
# timedatectl
Local time: Wed 2018-02-28 09:54:31 KST
Universal time: Wed 2018-02-28 00:54:31 UTC
RTC time: Wed 2018-02-28 00:54:31
Time zone: Asia/Seoul (KST, +0900)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
# date
Wed Feb 28 09:57:15 KST 2018
재부팅 후에도 정상적으로 변경된 타임존이 적용됩니다.