CentOS 7.2 安装Clam AntiVirus

Clam AntiVirus 简介

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)
  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值