리눅스 시간 설정

DevOps Engineer·2022년 9월 20일
0

/etc/localtime 심볼릭 링크가 있는지 확인을 해주고

KST가 아니면 삭제를 한 다음

ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
다시 링크를 걸어줍니다.

그리고 date로 확인

rdate -s time.bora.net && /sbin/hwclock -w

하드웨어 시간동기화 해주기

hwcclock
하드웨어 시간확인하기

처음 세팅할 경우

ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata

  • 2022.10.13 수정본
    jenkins container pod로 실행 시 리눅스 시간 변경하기
spec:
	container:
      env:
      - name: TZ
        value: "Asia/Seoul"
profile
madame의 Techblog

0개의 댓글