Last-modified: 2011-12-26 (月) 01:24:46
ntpdate/CentOSへのインストール

概要

自動時刻合わせを導入する。

手順

  1. ntpをインストールする。
    Everything is expanded.Everything is shortened.
      1
    
     
    
    yum install ntp
  2. cronに登録。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
    
     
     
    -
    !
    
    crontab -e
     
    # 自動時刻合わせ(毎時)
    0 * * * * /usr/sbin/ntpdate [参照先NTPサーバー] > /var/log/cron/ntpdate.log 2>&1

検証時の環境