Install ClamAV virus software under Linux

Source: Internet
Author: User

ClamAV virus-checking software configuration notes

Description: Can only check poison, anti-virus also need the administrator to do their own manual.

Download Website: http://www.clamav.net/downloads

when writing this article, the stable version is 0.99

ClamAVthe installation

# Install first zlib

Yuminstall zlib-y

# Add an account

Groupaddclamavuseradd-g clamav-s/sbin/nologin ClamAV

# installation ClamAV

wgethttp://www.clamav.net/downloads/production/clamav-0.99.tar.gz TARXF clamav-0.99.tar.gzcdclamav-0.99./ Configure--prefix=/usr/local/clamav--disable-clamavmake&& make Install

# Configuring environment variables

echo "Export path= $PATH:/usr/local/clamav/sbin:/usr/local/clamav/bin" >/etc/profile.d/clamav.shsource/etc/ profile.d/clamav.sh

# ClamAV the configuration

Cd/usr/local/clamavmkdirlogs updatatouchlogs/{freshclam,clamd}.logchown-r Clamav.clamav logs/*

# Modifying a configuration file

Mvetc/clamd.conf.sample etc/clamd.confmvetc/freshclam.conf.sampleetc/freshclam.conf vietc/clamd.conf Modify the configuration file for the following 3 lines: Logfile/usr/local/clamav/logs/clamd.logpidfile/var/run/clamd.piddatabasedirectory/usr/local/clamav /updata VI Edit/usr/local/clamav/etc/freshclam.conf comment out the eighth line of example. Mkdir-p/usr/local/clamav/share/clamavchown-r Clamav.clamav/usr/local/clamav/share/clamav

# Update virus database

Freshclam began to update the virus database "depending on the speed, very long time"

# Use ClamAV

Clamscan-h # View Help command #扫描所有用户的主目录使用 clamscan-r/home to scan all files on your computer and to display scan results for all files, use CLAMSCAN-R/scan your computer for All files and display the scanned results of the problematic files, use Clamscan-r--bell-i/execute the following command to scan all files under the root directory.

That's about it.


Install ClamAV virus software under Linux

Related Article

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.