2012-05-11

Centos install Clamav

Centos install Clamav


# 安裝 Clamav

wget http://pkgs.repoforge.org/clamav/clamav-0.97.4-1.el5.rf.x86_64.rpm
wget http://pkgs.repoforge.org/clamav/clamav-db-0.97.4-1.el5.rf.x86_64.rpm
wget http://pkgs.repoforge.org/clamav/clamav-devel-0.97.4-1.el5.rf.x86_64.rpm
wget http://pkgs.repoforge.org/clamav/clamd-0.97.4-1.el5.rf.x86_64.rpm

rpm -ivh clam*.rpm (安裝) ※yum remove clamv-* (移除,如果有安裝舊版)
/etc/init.d/clamd start
freshclam (更新)


# 排程更新病毒碼

vi /etc/crontab
0 0,12 * * * root /usr/bin/freshclam


# 下載測試病毒檔案

wget http://www.eicar.org/download/eicar.com
mv eicar.com /tmp


# 測試 clamd 的病毒掃描功能

clamscan /tmp/


Ubuntu 透過 apt-get 安裝
sudo apt-get install clamav

沒有留言:

張貼留言