Install and use clamav AntiVirus software in linuxes5-Linux general technology-Linux technology and application information. For details, refer to the following section. 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.
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"
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
When the above prompt appears, it means that the update has started. view the/var/log/freshclam. log file. The record of each update will be recorded in this file, as shown below: $ Cat/var/log/freshclam. log -------------------------------------- ClamAV update process started at Thu Nov 10 15:04:26 2005 Main. cvd updated (version: 34, sigs: 39625, f-level: 5, builder: tkojm) WARNING: Your ClamAV installation is OUTDATED-please update immediately! WARNING: Current functionality level = 2, required = 5 Daily. cvd updated (version: 1166, sigs: 1607, f-level: 6, builder: tomek) WARNING: Your ClamAV installation is OUTDATED-please update immediately! WARNING: Current functionality level = 2, required = 6 Database updated (41232 signatures) from database.clamav.net (140.128.9.18 ).
4. virus detection and removal
There are two Commands: clamscan and clamdscan. These two commands are used in a similar way. Here we will mainly introduce clamscan.
Example (0) scan the specified file:
Clamscan file
(1) scan the current directory:
Clamscan
(2) scan all files (including subdirectories) in the/home directory ):
Clamscan-r/home
Clamscan-r/(scan all directories and Their subdirectories)
(3) Load database from selected file and limit disk usage to 50 Mb:
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.