"리눅스 시간 동기화 ntpdate"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
(사용자 2명의 중간 판 5개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{참고|CentOS 시간 동기화 rdate}}
{{참고|CentOS 시간 동기화 rdate}}
==개요==
;리눅스 ntp 시간 동기화
;리눅스 ntp 시간 동기화
;리눅스 ntpdate
;리눅스 ntpdate
;/usr/sbin/ntpdate
;/usr/sbin/ntpdate
* NTP를 통해 날짜와 시각을 설정하는 프로그램/명령어


==동기화==
==동기화==
<source lang='bash'>
<syntaxhighlight lang='bash'>
ntpdate 서버주소
ntpdate 서버주소
</source>
</syntaxhighlight>
원격서버와 시간 동기화
원격서버와 시간 동기화


==시간 비교하기==
==시간 비교하기==
<source lang='bash'>
<syntaxhighlight lang='bash'>
ntpdate -d 서버주소
ntpdate -d 서버주소
</source>
</syntaxhighlight>
로컬 서버와 원격 서버의 시간 차이 알아보기.
로컬 서버와 원격 서버의 시간 차이 알아보기.


<source lang='cli'>
<syntaxhighlight lang='console'>
[root@localhost ~]# ntpdate -d 121.182.147.191
[root@localhost ~]# ntpdate -d 121.182.147.191
13 Feb 10:56:21 ntpdate[31646]: ntpdate 4.2.2p1@1.1570-o Tue Dec  8 20:30:45 UTC 2009 (1)
13 Feb 10:56:21 ntpdate[31646]: ntpdate 4.2.2p1@1.1570-o Tue Dec  8 20:30:45 UTC 2009 (1)
45번째 줄: 47번째 줄:


13 Feb 10:56:22 ntpdate[31646]: step time server 121.182.147.191 offset -32.723633 sec
13 Feb 10:56:22 ntpdate[31646]: step time server 121.182.147.191 offset -32.723633 sec
</source>
</syntaxhighlight>
→ 로컬서버가 121.182.147.191보다 32.72초 빠름.
→ 로컬서버가 121.182.147.191보다 32.72초 빠름.


==같이 보기==
==같이 보기==
*[[리눅스 시간 맞는지 확인]]
* [[리눅스 시간 맞는지 확인]]
*[[/etc/init.d/ntpdate]]
* [[/etc/init.d/ntpdate]]
*[[리눅스 rdate]]
* [[/etc/ntp.keys]]
*[[ntpd]]
* [[리눅스 rdate]]
*[[NTP]]
* [[ntpd]]
* [[NTP]]
* [[the NTP socket is in use, exiting]]
* [[no server suitable for synchronization found]]


[[분류:리눅스]]
[[분류:리눅스]]

2021년 9월 24일 (금) 23:17 기준 최신판

1 개요[ | ]

리눅스 ntp 시간 동기화
리눅스 ntpdate
/usr/sbin/ntpdate
  • NTP를 통해 날짜와 시각을 설정하는 프로그램/명령어

2 동기화[ | ]

ntpdate 서버주소

원격서버와 시간 동기화

3 시간 비교하기[ | ]

ntpdate -d 서버주소

로컬 서버와 원격 서버의 시간 차이 알아보기.

[root@localhost ~]# ntpdate -d 121.182.147.191
13 Feb 10:56:21 ntpdate[31646]: ntpdate 4.2.2p1@1.1570-o Tue Dec  8 20:30:45 UTC 2009 (1)
Looking for host 121.182.147.191 and service ntp
host found : 121.182.147.191
transmit(121.182.147.191)
receive(121.182.147.191)
transmit(121.182.147.191)
receive(121.182.147.191)
transmit(121.182.147.191)
receive(121.182.147.191)
transmit(121.182.147.191)
receive(121.182.147.191)
transmit(121.182.147.191)
server 121.182.147.191, port 123
stratum 1, precision -19, leap 00, trust 000
refid [GPS], delay 0.03165, dispersion 0.00095
transmitted 4, in filter 4
reference time:    d2e2ec25.45ba4af1  Mon, Feb 13 2012 10:55:49.272
originate timestamp: d2e2ec25.4d632a8e  Mon, Feb 13 2012 10:55:49.302
transmit timestamp:  d2e2ec46.05db445e  Mon, Feb 13 2012 10:56:22.022
filter delay:  0.04683  0.03171  0.03188  0.03165
         0.00000  0.00000  0.00000  0.00000
filter offset: -32.7162 -32.7236 -32.7237 -32.7236
         0.000000 0.000000 0.000000 0.000000
delay 0.03165, dispersion 0.00095
offset -32.723633

13 Feb 10:56:22 ntpdate[31646]: step time server 121.182.147.191 offset -32.723633 sec

→ 로컬서버가 121.182.147.191보다 32.72초 빠름.

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}