Top > Install Log > CentOS6 > ntp
AND OR

NTPの設定

インストール段階で設定していれば問題ないが、 あとから設定するときのために……

時刻合わせに必要な、NTPサーバを設定する。

NTPのインストール

# yum install ntp

NTPサーバの設定

設定ファイルを編集する。

# vi /etc/ntp.conf

一番最後に次の設定を追加する。

# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats
server hogehoge.hoge.ac.jp iburst ←追加する設定

NTPサーバの起動

まず、手動で時間をあわせる。

# ntpdate hogehoge.hoge.ac.jp

サービスの起動を設定する。

# service ntpd start

起動後の、同期の確認はntpqコマンドを使う。

# ntpq -p

システムの起動時に自動で起動するようにしておく。

# chkconfig ntpd on

リロード   差分   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
Last-modified: Tue, 18 Mar 2014 19:53:31 JST (3691d)