Kero4 Wiki
開始行:
#author("2017-05-26T15:04:40+09:00","default:kow","kow")
**CentOS7 タイムゾーンを設定する [#rf78009b]
~
- ''syntax:''
~
現状の確認 :~
&color(red,){'' timedatectl ''}; ~
~
TimeZoneのList出力 :~
&color(red,){'' timedatectl list-timezones ''}; ~
~
TimeZoneの設定 :~
&color(red,){'' timedatectl set-timezone Asia/Tokyo ''};
~
~
- ''comment:''~
CentOS7ではコマンドでTimeZoneの定義が可能
~
~
- ''Example:''
~
#highlight(php:nogutter:collapse){{
> timedatectl
Local time: 金 2017-05-26 14:50:30 JST
Universal time: 金 2017-05-26 05:50:30 UTC
RTC time: 金 2017-05-26 05:50:30
Time zone: Asia/Tokyo (JST, +0900)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
>
> timedatectl list-timezones
Asia/Singapore
Asia/Srednekolymsk
Asia/Taipei
Asia/Tashkent
Asia/Tbilisi
Asia/Tehran
Asia/Thimphu
Asia/Tokyo
Asia/Tomsk
Asia/Ulaanbaatar
Asia/Urumqi
Asia/Ust-Nera
Asia/Vientiane
>
> timedatectl set-timezone Asia/Tokyo
>
}}
~
#highlight(end)
~
~
&tag(Linux,System Config);
~
~
[[Goto Top Page>/]]
~
終了行:
#author("2017-05-26T15:04:40+09:00","default:kow","kow")
**CentOS7 タイムゾーンを設定する [#rf78009b]
~
- ''syntax:''
~
現状の確認 :~
&color(red,){'' timedatectl ''}; ~
~
TimeZoneのList出力 :~
&color(red,){'' timedatectl list-timezones ''}; ~
~
TimeZoneの設定 :~
&color(red,){'' timedatectl set-timezone Asia/Tokyo ''};
~
~
- ''comment:''~
CentOS7ではコマンドでTimeZoneの定義が可能
~
~
- ''Example:''
~
#highlight(php:nogutter:collapse){{
> timedatectl
Local time: 金 2017-05-26 14:50:30 JST
Universal time: 金 2017-05-26 05:50:30 UTC
RTC time: 金 2017-05-26 05:50:30
Time zone: Asia/Tokyo (JST, +0900)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
>
> timedatectl list-timezones
Asia/Singapore
Asia/Srednekolymsk
Asia/Taipei
Asia/Tashkent
Asia/Tbilisi
Asia/Tehran
Asia/Thimphu
Asia/Tokyo
Asia/Tomsk
Asia/Ulaanbaatar
Asia/Urumqi
Asia/Ust-Nera
Asia/Vientiane
>
> timedatectl set-timezone Asia/Tokyo
>
}}
~
#highlight(end)
~
~
&tag(Linux,System Config);
~
~
[[Goto Top Page>/]]
~
ページ名: