今回の参考URLhttp://honana.com/ntp/
$ sudo apt-get install ntp
$ sudo nano /etc/ntp.conf で編集
時刻を同期するサーバーを近いサーバーに変更します
# /etc/ntp.conf, configuration for ntpd
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/ ←#コメントアウト
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# You do need to talk to an NTP server or two (or three).
#server ntp.ubuntu.com ←#コメント
server ntp.nict.jp ←挿入
server ntp.nict.jp ←挿入
server ntp.nict.jp ←挿入
・・・・・・・・・・・・・・・・・
以下は編集せずに保存しました。
$ sudo /etc/init.d/ntp restart
10 分ほど経過して同期状況を確認する
$ sudo ntpq -p

0 件のコメント:
コメントを投稿