得意淡然,失意坦然;喜而不狂,忧而不伤。

centos 6.4安装杀毒软件clamAV 0.98[转]

Linux/Unix admin 1602次浏览 已收录 1个评论 扫描二维码

 

 
原文出处: http://dnuser.blog.51cto.com/4863891/1303829
 
1、查看系统版本
1
2
3
4
5
6
[root@local]# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.4 (Final)
Release:        6.4
Codename:       Final

  

 
2、增加clamavyum安装源
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[root@local]# cd /etc/yum.repos.d/
[root@local yum.repos.d]#vi dag.repo
#Dag RPM Repository Start
[dag]
name=Dag RPM Repository for RHEL4
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el4/en/$basearch/dag/
enabled=1
gpgcheck=1
#Dag RPM Repository End
 
[root@local yum.repos.d]# yum -y install clamd
出现错误:
warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Public key for clamd-0.98-2.el4.rf.x86_64.rpm is not installed
 
[root@local yum.repos.d]#vi dag.repo
#Dag RPM Repository Start
[dag]
name=Dag RPM Repository for RHEL4
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el4/en/$basearch/dag/
enabled=1
gpgcheck=0
#Dag RPM Repository End

将gpgcheck=1修改为gpgcheck=0  后正常安装
 
3、启动
1
2
3
4
5
6
7
8
9
[root@local /]# service clamd status
clamd is stopped
 
[root@local /]# service clamd start
Starting Clam AntiVirus Daemon: LibClamAV Warning: **************************************************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
[  OK  ]

  

4、更新病毒库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@local /]# freshclam<br>
ClamAV update process started at Mon Sep 30 16:08:12 2013
Downloading main-55.cdiff [100%]
main.cld updated (version: 55, sigs: 2424225, f-level: 60, builder: neo)
WARNING: getfile: daily-15077.cdiff not found on remote server (IP: 200.236.31.1)
WARNING: getpatch: Can't download daily-15077.cdiff from db.cn.clamav.net
Trying host db.cn.clamav.net (202.118.1.40)...
WARNING: getfile: daily-15077.cdiff not found on remote server (IP: 202.118.1.40)
WARNING: getpatch: Can't download daily-15077.cdiff from db.cn.clamav.net
WARNING: getpatch: Can't download daily-15077.cdiff from db.cn.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Downloading daily.cvd [100%]
daily.cvd updated (version: 17916, sigs: 385455, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 226, sigs: 43, f-level: 63, builder: neo)
Database updated (2809723 signatures) from db.cn.clamav.net (IP: 202.118.1.40)
Clamd successfully notified about the update.

  

5、查毒
扫描linux文件目录
1
2
3
4
5
6
7
8
9
10
11
12
[root@local]# clamscan /data2/
/data2/log: OK
/data2/ceshi: Empty file
----------- SCAN SUMMARY -----------
Known viruses: 2804419
Engine version: 0.98
Scanned directories: 1
Scanned files: 1
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 7.014 sec (0 m 7 s)


pitata技术乐园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明centos 6.4安装杀毒软件clamAV 0.98[转]
喜欢 (0)
[103531948@qq.com]
分享 (0)
发表我的评论
取消评论
表情 斜体

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(1)个小伙伴在吐槽
  1. 看看!
    30905802016-01-03 17:39 回复