Last-modified: 2016-08-27 (土) 21:22:56
ntpdate/Debianへのインストール

概要

Debianへntpdateをインストールします。

手順

  1. ntpdateをインストールします。
    Everything is expanded.Everything is shortened.
      1
    
     
    
    apt-get install ntpdate
  2. /etc/default/ntpdateを編集します。
    NTP/推奨公開サーバ - wiki@nothing
    Everything is expanded.Everything is shortened.
      1
      2
    
    -
    !
    
    # 参照先NTPサーバー
    NTPSERVERS="ntp.jst.mfeed.ad.jp"
  3. cronに登録します。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
    
     
     
    -
    !
    
    crontab -e
     
    # 自動時刻合わせ(毎時)
    0 * * * * /usr/sbin/ntpdate-debian > /var/log/cron/ntpdate-debian.log 2>&1

検証時の環境