- CentOS6.3
タイムゾーン
# cp -p /usr/share/zoneinfo/Japan /etc/localtime
NTPインストール
# sudo yum -y install ntp
NTPサーバの設定
# vi /etc/ntp.conf # OSバージョンによって初期設定値が異なるけど基本一緒
-server 0.centos.pool.ntp.org
-server 1.centos.pool.ntp.org
-server 2.centos.pool.ntp.org
+server -4 ntp.nict.jp
+server -4 ntp1.jst.mfeed.ad.jp
+server -4 ntp2.jst.mfeed.ad.jp
+server -4 ntp3.jst.mfeed.ad.jp
NTPサービス起動
# service ntpd start
NTPサービスの自動起動設定
# chkconfig ntpd on
設定確認
自動起動設定確認
# chkconfig --list ntpd
ntpサーバ照会
# ntpq -p