Overview
NTP を使用した時刻同期設定を行います。今回は、インターネットマルチフィードの NTP サーバーと同期します。
/etc/ntp.conf
/etc/ntp.conf を編集します。
[root@centos-6 ~]# cp /etc/ntp.conf /etc/ntp.conf.orig
[root@centos-6 ~]# vim /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@centos-6 ~]# service ntpd start && chkconfig ntpd
[root@centos-6 ~]# chkconfig ntpd --list
CentOS 6 NTP 時刻同期設定