[root@fedora ~]# vi /usr/local/etc/freshclam.conf ← ウィルスデータベース更新設定ファイル編集
# Comment or remove the line below.
#Example ← 行頭に#を追加(コメントアウト)
# Path to the log file (make sure it has proper permissions)
# Default: disabled
#UpdateLogFile /var/log/freshclam.log
UpdateLogFile /var/log/freshclam.log ← ログを記録する
# Uncomment the following line and replace XY with your country
# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
#DatabaseMirror db.XY.clamav.net
DatabaseMirror db.jp.clamav.net ← ウィルスデータベース入手元を日本に変更
[root@fedora ~]# touch /var/log/freshclam.log ← 空のログファイルを作成
[root@fedora ~]# chown clamav:clamav /var/log/freshclam.log ← ログファイルの所有者を変更
[root@fedora ~]# freshclam ← ウィルスデータベース更新
ClamAV update process started at Thu Aug 23 10:26:00 2007
main.cvd is up to date (version: 44, sigs: 133163, f-level: 20, builder: sven)
・
・
・
daily.cvd updated (version: 4032, sigs: 15068, f-level: 21, builder: ccordes)
Database updated (148231 signatures) from db.jp.clamav.net (IP: 203.212.42.128)
[root@fedora ~]# vi /etc/logrotate.d/freshclam ← freshclamログローテーション設定ファイル作成
/var/log/freshclam.log {
missingok
notifempty
create 644 clamav clamav
}
|
|