NTPd インストール
■NTPdインストール
[root@ns1 ~]# yum -y install ntp
■ntp.conf設定
[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
■NTPd起動
[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」で確認すると同期中のマーク * が付きます。
このページの記事内容に関して
誤字脱字や間違いはこちらからご連絡ください。ご指摘大歓迎です。