LoginSignup
8
7

More than 5 years have passed since last update.

[AWS] Amazon Linux の Timezone を日本標準(JST)に変更

Posted at

Amazon Linux を Tokyo Region にたてるとまずはこれ。

1. /etc/sysconfig/clock 変更

  • vi で編集
$ sudo vi /etc/sysconfig/clock
  • 編集内容
#ZONE="UTC"             >>>コメントアウト
ZONE="Asia/Tokyo"       >>>追加
UTC=true

2. シムリンク追加

  • 追加
$ sudo ln -sf /usr/share/zoneinfo/Japan /etc/localtime
  • これで日本時間に変わってるよ

3. reboot

  • ついでにパッケージアップデートをした方がいい (何度もreboot面倒いからね)
$ sudo yum update -y 
  • reboot
$ sudo reboot

= 終 =

8
7
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
8
7