微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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)

原文地址:https://www.jb51.cc/centos/380049.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。