前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CentOS 7.2 安装Clam AntiVirus

CentOS 7.2 安装Clam AntiVirus

作者头像
shaonbean
发布2019-05-26 09:44:34
5370
发布2019-05-26 09:44:34
举报
文章被收录于专栏:运维前线运维前线

版权声明:本文为木偶人shaon原创文章,转载请注明原文地址,非常感谢。 https://cloud.tencent.com/developer/article/1434740

Clam AntiVirus 简介

Clam AntiVirus 安装

  • 安装Clam AntiVirus以保护服务器免受病毒攻击
代码语言:javascript
复制
@ 安装
[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)
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016年11月06日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Clam AntiVirus 简介
  • Clam AntiVirus 安装
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档