运维开发网

CentOS 7.2 安装Clam AntiVirus

运维开发网 https://www.qedev.com 2020-02-28 19:33 出处:网络 作者:运维开发网整理
Clam AntiVirus 简介 Clam AntiVirus是一个类UNIX系统上使用的反病毒软件包。主要应用于邮件服务器,采用多线程后台操作,可以自动升级病毒库。

Clam AntiVirus 简介

  • Clam AntiVirus是一个类UNIX系统上使用的反病毒软件包。主要应用于邮件服务器,采用多线程后台操作,可以自动升级病毒库。
  • Clam AntiVirus 官网地址:http://www.clamav.net/
  • Clam AntiVirus 下载地址:https://sourceforge.net/projects/clamav/

Clam AntiVirus 安装

  • 安装Clam AntiVirus以保护服务器免受病毒攻击
@ 安装
[root@Linuxprobe ~]#  yum --enablerepo=epel -y install clamav clamav-update 
[root@Linuxprobe ~]# sed -i -e "s/^Example/#Example/" /etc/freshclam.conf
[root@Linuxprobe ~]# freshclam
[root@Linuxprobe ~]# clamscan --infected --remove --recursive /home
LibClamAV Warning: ******************************************************
LibClamAV Warning: *** Virus database timestamp in the future! ***
LibClamAV Warning: *** Please check the timezone and clock settings ***
LibClamAV Warning: ******************************************************

----------- SCAN SUMMARY -----------
Known viruses: 5045042
Engine version: 0.99.2
Scanned directories: 5
Scanned files: 9
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 10.659 sec (0 m 10 s)
# 下载使用病毒
[root@Linuxprobe ~]# curl -O http://www.eicar.org/download/eicar.com 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 Dload Upload Total Spent Left Speed
100    68  100    68    0     0     20      0  0:00:03  0:00:03 --:--:--    20
# 搜索并删除病毒文件
[root@Linuxprobe ~]# clamscan --infected --remove --recursive .
LibClamAV Warning: ******************************************************
LibClamAV Warning: *** Virus database timestamp in the future! ***
LibClamAV Warning: *** Please check the timezone and clock settings ***
LibClamAV Warning: ******************************************************
./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.

----------- SCAN SUMMARY -----------
Known viruses: 5045042
Engine version: 0.99.2
Scanned directories: 4
Scanned files: 11
Infected files: 1
Data scanned: 0.01 MB
Data read: 0.00 MB (ratio 2.00:1)
Time: 7.595 sec (0 m 7 s)
0

精彩评论

暂无评论...
验证码 换一张
取 消