Cloud

Centos7 NTP 설정 본문

리눅스

Centos7 NTP 설정

Firewall 2017. 6. 30. 14:30

Centos7 에서는 타임존 설정을 명령어로 따로 마련되어 있다.


timedatectl 로 현재 상태 확인


[srv@ip-10-0-0-18 home]$ timedatectl

      Local time: Fri 2017-06-30 05:24:47 UTC

  Universal time: Fri 2017-06-30 05:24:47 UTC

        RTC time: Fri 2017-06-30 05:24:47

       Time zone: UTC (UTC, +0000)

     NTP enabled: yes

NTP synchronized: yes

 RTC in local TZ: no

      DST active: n/a


timedatectl list-timezones <- 타임존 리스트 확인




[srv@ip-10-0-0-18 home]$ sudo timedatectl set-timezone Asia/Tokyo

[srv@ip-10-0-0-18 home]$ 

[srv@ip-10-0-0-18 home]$ 

[srv@ip-10-0-0-18 home]$ 

[srv@ip-10-0-0-18 home]$ timedatectl

      Local time: Fri 2017-06-30 14:26:48 JST

  Universal time: Fri 2017-06-30 05:26:48 UTC

        RTC time: Fri 2017-06-30 05:26:47

       Time zone: Asia/Tokyo (JST, +0900)

     NTP enabled: yes

NTP synchronized: yes

 RTC in local TZ: no

      DST active: n/a


Comments