CentOS7 Timezone 설정/변경 하기

System Story/CentOS 7 2016. 2. 10. 19:10

 

이번 게시물에서는 CentOS7 버전에서 변경된 Timezone 설정 방법에 대해서 알아보고자 한다.

 

우선 Centos / RHEL 5.x ~ 6.x 버전에서는 OS 의 전역 Timezone 설정을 위해 다음과 같은 과정을 거쳤었다.

 

[root@centos6 ~]#
[root@centos6 ~]# vi /etc/sysconfig/clock

ZONE="America/New_York"

[root@centos6 ~]#
[root@centos6 ~]# ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
[root@centos6 ~]#

[root@centos6 ~]#
[root@centos6 ~]# source /etc/sysconfig/clock
[root@centos6 ~]#
[root@centos6 ~]#

 

 

하지만 Centos7 / RHEL7 버전으로 넘어오면서 아래와 같이 Timezone 변경/설정 방법이 변경되었다.

 

1. Centos7 Timezone 설정 변경하기

 

[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# date
Wed Feb 10 00:55:47 EST 2016
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# timedatectl 
      Local time: Wed 2016-02-10 00:55:54 EST
  Universal time: Wed 2016-02-10 05:55:54 UTC
        RTC time: Wed 2016-02-10 05:55:54
       Time zone: America/New_York (EST, -0500)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2015-11-01 01:59:59 EDT
                  Sun 2015-11-01 01:00:00 EST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2016-03-13 01:59:59 EST
                  Sun 2016-03-13 03:00:00 EDT
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# timedatectl list-timezones | grep -i seoul
Asia/Seoul
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# timedatectl set-timezone Asia/Seoul
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# timedatectl | grep -i "time zone"
       Time zone: Asia/Seoul (KST, +0900)
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# date
Wed Feb 10 14:56:41 KST 2016
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#

 

 

 

※ 참고 : Centos7 GUI Timezone 설정 메뉴

 

 

 

 

 

 

 

 

Trackbacks 0 : Comments 0

Write a comment

◀ PREV : [1] : [2] : [3] : [4] : [5] : [6] : [7] : [8] : [9] : [10] : [···] : [14] : NEXT ▶