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 /