1.下載clavam檔案

wget http://pkgs.repoforge.org/clamav/clamav-0.97.6-1.el6.rf.i686.rpm
wget http://pkgs.repoforge.org/clamav/clamav-db-0.97.6-1.el6.rf.i686.rpm
wget http://pkgs.repoforge.org/clamav/clamav-devel-0.97.6-1.el6.rf.i686.rpm
wget http://pkgs.repoforge.org/clamav/clamd-0.97.6-1.el6.rf.i686.rpm

2.安裝Clamav

#rpm -Uvh clam*

3.更新病毒資料庫
# /usr/bin/freshclam -v

4.每天定時更新病毒資料庫,每5分鐘
# vim /etc/crontab
5 * * * * /usr/bin/freshclam --quiet

5.設定每日or每周掃描電腦
# cd /etc/cron.daily
# vim /etc/cron.daily/clamav-scan
/usr/bin/freshclam
/usr/bin/clamscan -ri --exclude-dir=^/sys /

# chmod +x /etc/cron.daily/clamav-scan

# cp clamav-scan /etc/cron.weekly/

Q.[LibClamAV] Detected duplicate databases /var/clamav/main.cvd and /var/clamav/main.cld, please manually remove one of them
A.
# cd /var/clamav
# ls -al
看看 main.cvd、main.cld 哪一個比較舊,把舊的刪掉,(或移到別的目錄)

重新啟動防毒
# /etc/init.d/clamd restart


Q.LibClamAV Warning: fmap_readpage: pread fail: asked for 4085 bytes @ offset 11, got 0
A.
clamscan -r --exclude-dir=^/sys /

arrow
arrow
    全站熱搜

    蒼穹 發表在 痞客邦 留言(0) 人氣()