Debian wheezy で時間合わせ

# apt-get install ntp ntpdate

で、一旦止める。

# /etc/init.d/ntp stop

時間合わせ。

# ntpdate ntp.nict.jp

設定ファイル書き換え。

# vi /etc/ntp.conf

#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst
pool ntp.nict.jp

で、

# /etc/init.d/ntp start

確認は。

# ntpq- p

で。

コメント

タイトルとURLをコピーしました