2013年9月10日火曜日

ntp time server

ntp time server

#yum install ntp

back up original conf
# mv /etc/ntp.conf /etc/ntp.conf.bak

make a new conf
#vi /etc/ntp.conf
driftfile /var/lib/ntp/drift
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp

synchronize a server's time manually
#ntpdate ntp1.jst.mfeed.ad.jp

ntp service start
#/etc/rc.d/init.d/ntpd start

#chkconfig ntpd on
#chkconfig --list ntpd

prints current time server
#ntpq -p

check status
#/etc/init.d/ntpd status

0 件のコメント:

コメントを投稿