一.安装包&病毒库:
https://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/c/clamav-db-0.99.2-3.el6.x86_64.rpm
#数据库
https://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/c/clamav-0.99.2-3.el6.x86_64.rpm
#主程序
https://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/c/clamd-0.99.2-3.el6.x86_64.rpm
#daemon
http://database.clamav.net/main.cvd
http://database.clamav.net/daily.cvd
http://database.clamav.net/bytecode.cvd
二.安装(基于依赖关系,注意安装顺序):
1.rpm -ivh clamav-db-0.99.2-3.el6.x86_64.rpm # clamav数据库
2.rpm -ivh clamav-0.99.2-3.el6.x86_64.rpm # clamav主程序
3.rpm -ivh clamd-0.99.2-3.el6.x86_64.rpm # daemon
三.配置
1.复制离线病毒库到/var/lib/clamav #路径在/etc/freshclam.conf中定义
2.执行freshclam,更新病毒库到最新 #后续基于上一步的病毒库进行增量更新
四.扫描病毒
clamscan -r 目录 -l 指定病毒扫描日志路径
网友评论