45
42

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.

CentOS7でタイムゾーンの変更をしました。

Last updated at Posted at 2016-07-11

CentOS7のタイムゾーンを変更しました。

タイムゾーンを確認

sudo timedatectl 
      Local time: 月 2016-07-11 00:43:22 UTC
  Universal time: 月 2016-07-11 00:43:22 UTC
        RTC time: 日 2016-07-10 19:40:27
       Time zone: UTC (UTC, +0000)
     NTP enabled: n/a
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a

UTCになっています。

timezoneのAsia/Tokyoをセット

sudo timedatectl set-timezone Asia/Tokyo

もう一度確認

sudo timedatectl 
      Local time: 月 2016-07-11 09:55:46 JST
  Universal time: 月 2016-07-11 00:55:46 UTC
        RTC time: 日 2016-07-10 19:52:51
       Time zone: Asia/Tokyo (JST, +0900)
     NTP enabled: n/a
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a

Asia/Tokyoになりました(☝ ՞ਊ ՞)

参考

45
42
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
45
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?