参考にしたURL
http://qiita.com/dumpty-alma@github/items/0e43c1b585f1fb90ec8e
初めの状態
おっと、vagrant box からCentOS7をインストールしたら、時間の表示がこのような感じだった。
[root@localhost ~]# date
Fr 6. Nov 11:12:16 CET 2015
timedatectl というコマンドがあるらしい・・
timedatectl -h
timedatectl [OPTIONS...] COMMAND ...
Query or change system time and date settings.
-h --help Show this help
--version Show package version
--adjust-system-clock
Adjust system clock when changing local RTC mode
--no-pager Do not pipe output into a pager
-P --privileged Acquire privileges before execution
--no-ask-password Do not prompt for password
-H --host=[USER@]HOST Operate on remote host
Commands:
status Show current time settings
set-time TIME Set system time
set-timezone ZONE Set system timezone
list-timezones Show known timezones
set-local-rtc BOOL Control whether RTC is in local time
set-ntp BOOL Control whether NTP is enabled
timezoneの変更
設定できるtime-zone はこれで表示される
[root@localhost ~]# timedatectl list-timezones
では、設定
[root@localhost ~]# timedatectl set-timezone Asia/Tokyo
[root@localhost ~]# date
Fr 6. Nov 19:24:03 JST 2015
なおった~♪