ntpdのインストール

最近、なんか少し時間がずれてきたような気がしてならない。
そういやntpサーバ構築してない。
設定は簡単だ。
ntpはすでにインストールされているので

>ntp.confを書き換え
# vi /etc/ntp.conf

server ntp.nict.jp
server ntp.jst.mfeed.ad.jp
server ntp.xxxx.xx.jp (←これはうちの職場)

>一度手動で設定
# ntpdate ntp.nict.jp
# 29 Oct 21:01:10 ntpdate[7927]: step time server 133.243.238.243 offset -699.276796 sec



>ntpdの起動
# etc/rc.d/init.d/ntpd start
ntpd を起動中: [ OK ]



>chkconfigで起動時の設定を確認(2-5でon)
# chkconfig ntpd on
# chkconfig --list ntpd
ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off



>ntpqで同期状態の確認
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ntp-a2.nict.go. .NICT. 1 u 20 64 3 16.712 -2.261 3.782
ntp1.jst.mfeed. 210.173.160.86 2 u 20 64 3 18.927 -6.781 3.849
ntp.xxxx.xx.jp 150.29.254.30 3 u 19 64 3 13.151 -2.759 3.763
LOCAL(0) .LOCL. 10 l 18 64 3 0.000 0.000 0.001



>やっと同期した(*と+のマーク)
[root@rhaetulus etc]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*ntp-a2.nict.go. .NICT. 1 u 33 64 37 16.682 -13.610 7.322
+ntp1.jst.mfeed. 210.173.160.56 2 u 31 64 37 18.589 -10.445 5.935
+ntp.xxxx.xx.jp 150.29.254.34 3 u 33 64 37 13.081 -18.364 10.614
LOCAL(0) .LOCL. 10 l 30 64 37 0.000 0.000 0.001



いつもお世話になってます、ありがとうございます。
CentOS自宅サーバ構築
http://centossrv.com/