Showing posts with label rhel7. Show all posts
Showing posts with label rhel7. Show all posts

Monday, May 2, 2016

TimeZone

CentOS 6


TimeZone 설정하기

$ vi /etc/sysconfig/clock

ZONE#Asia/Seoul

$ tzdata-update

TimeZone 파일들

/etc/localtime
/etc/sysconfig/clock
/usr/share/zoneinfo/Asia/Seoul

CentOS 7


TimeZone 리스트

$ timedatectl list-timezones

TimeZone 설정하기

$ timedatectl set-timezone Asia/Seoul

TimeZone 확인

$ timedatectl

      Local time: 목 2016-01-14 00:13:43 KST
  Universal time: 수 2016-01-13 15:13:43 UTC
        RTC time: 수 2016-01-13 15:13:44
        Timezone: Asia/Seoul (KST, +0900)
     NTP enabled: n/a
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a


Friday, April 29, 2016

RedHatEnterpriseLinux7

Hostname 변경하기

hostnamectl
$ hostnamectl set-hostname vozlt.com

관련 파일
/etc/hostname

cloud-init 사용시: 맨아래에 내용 추가
$ sudo vim /etc/cloud/cloud.cfg

preserve_hostname: true

Locale 변경하기

현재 Locale 확인
localectl

   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: us

Locale 리스트
localectl list-locales

aa_DJ
aa_DJ.iso88591
aa_DJ.utf8
aa_ER
aa_ER.utf8
aa_ER.utf8@saaho
aa_ER@saaho
aa_ET
aa_ET.utf8
.
.
.

Locale 설정
localectl set-locale LANG=ko_KR.UTF-8

변경된 Locale 확인

   System Locale: LANG=ko_KR.UTF-8
       VC Keymap: us
      X11 Layout: us

기타