
photo credit: Oliebollen
何か思いっきり時刻ずれていたので
# yum install -y ntp
ntp設定
# vi /etc/ntp.conf
以下がntp serverの設定
server 0.centos.pool.ntp.org
server 1.centos.pool.ntp.org
server 2.centos.pool.ntp.org
自宅のプロバイダのntp serverに設定変更
server -4 ntp0.itscom.jp
server -4 ntp1.itscom.jp
ntpd 起動
#/etc/rc.d/init.d/ntpd start
起動時に自動起動するように設定
#chkconfig ntpd on
起動設定確認
#chkconfig –list | grep ntpd
ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ntp serverとの同期確認。設定してから同期するまで5~10分ほどかかる。*は、peerと時刻同期されていることを示し、+は*が死んだときのcandidateであることを示す。
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
+ntp0.itscom.jp 210.173.160.57 3 u 8 64 377 17.130 -5.573 5.814
*ntp1.itscom.jp 133.243.238.164 2 u 1 64 377 16.042 -11.881 4.921
LOCAL(0) .LOCL. 10 l 61 64 177 0.000 0.000 0.001

