Install and use clamav AntiVirus software in Linux ES5

Source: Internet
Author: User
Tags gmp

I. Introduction
Clam AntiVirus is a free anti-virus software based on UNIX/LINUX operating systems. It supports online updating of virus libraries.
Features 1.1
GNU open-source software
Quick Scan
It can detect 35000 types of viruses, including Microsoft Office documents and macro viruses.
Ability to detect compressed files (Zip RAR Tar Gzip Bzip2 ......)
Powerful email Scanning
High scalability
1.2 virus submission
If you find a virus that ClamVA cannot kill, you can enter relevant information on the following URL:
Http://www.clamav.net/sendvirus.html
Ii. Software Installation
Operating System Environment: RedHat linux es5
Generally, two files need to be installed. gmp is mainly used to update the virus database.
$ Rpm-vih gmp-4.1.4-3.el5.i386.rpm clamav-0.91.2-31.el5.i386.rpm
3. Configure clamav. conf and freshclam. conf
After installation, the configuration file is in the/etc/directory, clamav. conf is the main configuration file of anti-virus software, freshclam. conf is the configuration file for updating the virus database. Below are the configuration instances of the two files, which can be modified according to the environment:
Note: You need to comment out the "Example" at the beginning of the clamd. conf and freshclam. conf files"
$ Vi/etc/clamav. conf
LogFile/var/log/clamd
LogTime
LogSyslog
PidFile/var/lib/clamav/clamd. pid
DatabaseDirectory/var/lib/clamav
TCPSocket 3310
TCPAddr 127.0.0.1
MaxDirectoryRecursion 15
User vscan
Foreground
ScanOLE2
ScanMail
ScanArchive
ArchiveMaxFileSize 10 M
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
ArchiveMaxCompressionRatio 200
$ Vi/etc/freshclam. conf
UpdateLogFile/var/log/freshclam. log
LogSyslog
DatabaseMirror database.clamav.net
MaxAttempts 3
Checks 12
After the configuration is complete, start clam:
$/Etc/init. d/clamd start
Start update:
$ Freshclam
ERROR: Cant't open/var/log/freshclam. log in append mode.
ERROR: Problem with internal logger.
If the above error occurs, create the file and set the permission:
$ Touch/var/log/freshclam. log
$ Chmod 777/var/log/freshclam. log
Run the command freshclam again.
$ Freshclam
ClamAV update process started at Thu Nov 10 15:04:26 2005
Reading CVD header (main. cvd): OK
Downloading main. cvd [*]
Main. cvd updated (version: 34, sigs: 39625, f-level: 5, builder: tkojm)
......

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.