LoginSignup
4
3

More than 1 year has passed since last update.

AWS EC2で時刻同期する際の備忘録(ubuntu20.04LTS版)

Last updated at Posted at 2022-05-05

AWS EC2で時刻同期する際の備忘録です

OSはubuntu20.04LTS

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"

初期では、時刻は9時間前(UTC)となっていた

$ date
Thu May  5 16:28:53 UTC 2022

sudo timedatectl set-timezone Asia/Tokyoを実行すればOK(JSTにする場合)

Ubuntu 20.04 LTS タイムゾーンの変更(時刻合わせ:timedatectl)

sudo timedatectl set-timezone Asia/Tokyo

date実行して期待する時刻となっていることを確認

$ date
Fri May  6 01:35:27 JST 2022

参考

Ubuntu 20.04 LTS タイムゾーンの変更(時刻合わせ:timedatectl)
Amazon EC2のタイムゾーンを日本時間に変更する方法
AWS のタイムゾーンを UTC 協定世界時から JST 日本標準時に変更

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3