![]() |
| home > CentOS5 > 時刻同期 NTPd インストール |
[root@ns1 ~]# yum -y install ntp [root@ns1 ~]# yum clean packages
[root@ns1 ~]# mv /etc/ntp.conf /etc/ntp.conf.org [root@ns1 ~]# 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
[root@ns1 ~]# ntpdate ntp1.jst.mfeed.ad.jp 20 Jan 21:29:11 ntpdate[303]: adjust time server 210.173.160.27 offset 0.313942 sec [root@ns1 ~]# /etc/rc.d/init.d/ntpd start [root@ns1 ~]# chkconfig ntpd on [root@ns1 ~]# chkconfig --list ntpd ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@ns1 ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
+ntp1.jst.mfeed. 210.173.160.86 2 u 21 64 17 22.677 7.897 7.004
*ntp2.jst.mfeed. 210.173.176.251 2 u 25 64 17 22.446 12.529 9.473
+ntp3.jst.mfeed. 210.173.160.86 2 u 22 64 17 19.874 10.176 8.754
ヒント 「ntpq -p」で左端に+や*マークが付いてない場合は 3分後くらいに再度「ntpq -p」で確認すると同期中のマーク * が付きます。
![]() |
![]() |
![]() |
Last updated 2008-05-12 |