4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS Linux タイムゾーン変更

Posted at

AWS Linuxでログの時間とかが日本時間と違うのは、タイムゾーンが違う為。
開発とかログを確認する際に分かりずらいので、日本時間に変更する。

確認する

date
Sun Mar 25 01:58:04 UTC 2018

strings /etc/localtime
TZif2
TZif2
UTC0

UTCになっている。

変更する

cp /etc/localtime /etc/localtime.org
ln -sf  /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

念のためバックアップを取得してから行う。
これでdateをするとJSTになっている。

4
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?