LoginSignup
1
3

More than 3 years have passed since last update.

【Debian8】タイムゾーン(Timezone)の変更

Last updated at Posted at 2017-11-04

正しいのかまだ不明だが、一応動作確認はできたので忘備録としてメモ。

CentOSの場合は下記のリンクの通りでOK

「【Linux】タイムゾーン(Timezone)の変更 - Qiita」https://qiita.com/azusanakano/items/b39bd22504313884a7c3

Debianは「/etc/sysconfig/clock」の取扱が異なり、「/etc/timezone」で管理しているとのこと。

「タイムゾーンの設定方法をメモ(RHEL6, RHEL7, Ubuntu編) | Siguniang's Blog」https://siguniang.wordpress.com/2015/03/20/set-timezone/
「Changing the timezone of your Debian system」https://debian-administration.org/article/213/Changing_the_timezone_of_your_Debian_system

したがって、timezoneの値を「UTC」=> 「Tokyo」と変更して、localtimeの値も同様に変更することで時刻変更することができた。

【追記】
Debian9では下記のqiitaのエントリ通りに実施できた
多謝です。
「Debian9のタイムゾーン設定に関するメモ - Qiita」
https://qiita.com/pioka/items/e6a7a2ecdf356675d49d

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