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