Last-modified: 2013-02-10 (日) 23:38:13
rsyslog/CentOSへのインストール

概要

rsyslogをインストールします。

手順

  1. インストールします。
    Everything is expanded.Everything is shortened.
      1
    
     
    
    yum install rsyslog
  2. syslogを停止します。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
      6
      7
      8
    
    -
    !
     
    -
    !
     
    -
    !
    
    # 停止
    /etc/init.d/syslog stop
     
    # 自動起動停止
    chkconfig syslog off
     
    # 確認
    chkconfig --list
  3. rsyslogの自動起動設定を行ないます。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
    
    -
    !
     
    -
    !
    
    # 自動起動停止
    chkconfig rsyslog on
     
    # 確認
    chkconfig --list
  4. /etc/rsyslog.confを編集します。
    ここでは、My設定に従い設定しました。
  5. ログディレクトリ整備します。
    ここでは、My設定に従い整備しました。
  6. rsyslogを起動します。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
    
    -
    !
     
    -
    !
    
    # 起動
    /etc/init.d/rsyslog start
     
    # 確認
    ps aux | grep rsyslog

検証時の環境