Overview
CentOS 5 における NTP サーバーの構築手順です。
インストール
ntp
をインストールします。
[root@centos-5 ~]# yum -y install ntp
/etc/ntp.conf
/etc/ntp.conf
をバックアップし、エディターで開きます。
[root@centos-5 ~]# cp /etc/ntp.conf /etc/ntp.conf.orig
[root@centos-5 ~]# vim /etc/ntp.conf
/etc/ntp.conf
を編集します。この例では、インターネットマルチフィードの NTP サーバーを上位の NTP サーバーとして指定しています。
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp
サービス起動設定
ntpd
サービスを起動し、システムの起動時に有効になるように設定します。
[root@centos-5 ~]# service ntpd start && chkconfig ntpd on
CentOS 5 ntpd 時刻同期設定