1、配置環境:
根據自己的系統版本下載相應的epel安裝文件並安裝。
#wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm #wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#rpm -ivh epel-release-latest-6.noarch.rpm
2、安裝clamav
#yum install clamav clamav-server clamav-data clamav-update clamav-filesystem clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
3、病毒庫默認地址
病毒庫默認地址是/var/lib/clamav
4、服務操作
systemctl start clamav-freshclam.service systemctl enable clamav-freshclam.service systemctl status clamav-freshclam.service
5、更新病毒庫
cd /var/lib/clamav wget http://database.clamav.net/main.cvd wget http://database.clamav.net/daily.cvd wget http://database.clamav.net/bytecode.cvd
或者,一個命令
freshclam
6、顯示找到的病毒信息
clamscan --no-summary -ri /
7、殺毒
clamscan --infected --remove --recursive /
