debian で ntp を使用した時刻同期



簡単な設定なのですが、いつも忘れてしまうのでメモ

■ntpのインストール

apt-get install ntp ntpdate ntp-doc ntp-simple



■設定ファイルの変更
参照するサーバを国内のものに変更します。

# vi /etc/ntp.conf
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp


■サービス再起動

#/etc/init.d/ntp restart


#date
として、現在の時刻が表示されればOK


もどる