[Linux] 서버 시간 변경

김봉남·2024년 1월 19일

Linux

목록 보기
12/36
post-thumbnail

NTP

  • NTP(네트워크 타임 프로토콜, Network Time Protocol)은 컴퓨터 및 네트워크 장치 간에 정확한 시간 정보를 동기화하기 위해 사용되는 프로토콜
  • NTP는 네트워크 상에서 시간을 동기화하여 서로 다른 시스템이나 장치 간에 시간을 일치시킵
  • 정확한 시간 동기화는 로깅, 보안, 네트워크 통신 등 다양한 분야에서 중요한 역할

시스템 시간 변경 작업 순서

[root@test zoneinfo]# ls -l /etc/localtime
lrwxrwxrwx 1 root root 30  4월 25  2023 /etc/localtime -> /usr/share/zoneinfo/Asia/Seoul

[root@test zoneinfo]# ln -sf /usr/share/zoneinfo/UTC /etc/localtime

[root@test zoneinfo]# date
2024. 01. 19. (금) 05:33:47 UTC

[root@test zoneinfo]# ls -l /etc/localtime
lrwxrwxrwx 1 root root 23  1월 19 05:33 /etc/localtime -> /usr/share/zoneinfo/UTC

[root@test zoneinfo]# date
2024. 01. 19. (금) 05:34:11 UTC
profile
남자다

0개의 댓글