LoginSignup
1
0

More than 1 year has passed since last update.

【備忘】EC2のタイムゾーンをJSTに変更する

Posted at

EC2はJSTじゃないんですね

さすがグローバル企業

  • EC2のrootユーザで作業

localtimeの編集

$ sudo su -
# cp -p /usr/share/zoneinfo/Japan /etc/localtime
# cat /etc/localtime 
TZipYp;~~JDTJSTTZif2
                        e¤ppYp;ۭLMTJDTJST
JST-9

clockの編集

# vim /etc/sysconfig/clock
ZONE="Asia/Tokyo"
UTC=False
# date
Tue Oct  5 20:07:47 JST 2021
1
0
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
1
0