91 words
1 minute
[Linux]Linux container timezone 설정
2024-07-20
2026-03-23

개요#

리눅스 ec2 인스턴스에서 생성된 기본 timezone은 UTC이다. 이를 local KST로 변경하자.

1. timezone 확인#

Terminal window
date

2. timezone 변경#

  • 현재 timezone 이 설정된 symbolic link 삭제
Terminal window
sudo rm /etc/localtime
  • symbolic link 재생성
Terminal window
sudo ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
  • timezone 변경 확인
Terminal window
date

관련 문서#

  • [[de-linux-set_editor|[Linux]기본 에디터 neovim으로 변경하기]] tag overlap 0.67
[Linux]Linux container timezone 설정
https://yjinheon.netlify.app/posts/05system/linux/de-linux-set_timezone/
Author
Datamind
Published at
2024-07-20
License
CC BY-NC-SA 4.0