Linux/Solaris ntp 클라이언트 설정

ntp를 이용한 시간 동기화 방법이다.

1. Linux - Redhat 계열

vi /etc/ntp.conf

server 192.43.244.18 #여러개의 서버를 나열해되 된다.

ntp 서비스를 올린다.

service ntpd restart

확인은 아래 명령으로 한다.

ntpq -p 192.43.244.18

remote refid st t when poll reach delay offset jitter ==============================================================================

*LOCAL(0) .ACTS. 0 l 45 64 377 0.000 0.000 0.000

 

2. Solaris 10

vi /etc/inet/ntp.conf server 192.43.244.18 #여러개의 서버를 나열해되 된다.

ntp 서비스를 올린다. svcadm enable ntp

확인은 아래 명령으로 한다.

svcs ntp
STATE          STIME    FMRI
online         16:51:05 svc:/network/ntp:default

ntpq -p 192.43.244.18
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*LOCAL(0)        .ACTS.           0 l   45   64  377    0.000    0.000   0.000

 

이올린에 북마크하기

Posted by Charley Lim

2010/01/06 19:47 2010/01/06 19:47

Trackback URL : http://blogzin.net/charley/trackback/211

Comments List

  1. Charley Lim 2010/01/06 18:07 # M/D Reply Permalink

    Linux의 경우 service ntpd restart 에서 아래와 같은 에러가 발생할 수 있다.

    ntpd: unrecognized service

    ntpd 가 설치되지 않은 경우 이므로 아래 명령으로 패키지를 설치하면 된다.

    yum install ntp

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 5 : 6 : 7 : 8 : 9 : 10 : 11 : 12 : 13 : ... 115 : Next »

Calendar

«   2010/07   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Site Stats

Total hits:
275417
Today:
66
Yesterday:
118

185

131

-30 days

today : 66