Install anti-virus software clamav in centos 6.5
1. Install the clamav File
1. Use the rz-y command to upload data to the/usr/local/src directory.
2. Create a clamav group groupadd clamav
3. Create a clamav user useradd-g clamav
4. decompress the file tar-zxvf clamav-0.98.7.tar.gz
5. Start to configure the directory./configure -- prefix =/usr/local/clamav
6. If the libxml and openssl errors occur during the configuration process, use yum install libxml * openssl *-y to install the missing package file.
7. install clamav make & make install
8. Create the logs file mkdir/usr/local/clamav/logs (log storage directory)
9. Create the updata folder mkdir/usr/local/clamav/updata (clamav virus database directory)
10. Run the cp command to modify the file name.
11. Edit vi/usr/local/clamav/etc/clamd. conf.
# Example comment out this line. 8th rows
LogFile/usr/local/clamav/logs/clamd. log Delete the comment directory and change it to 14th lines under logs.
PidFile/usr/local/clamav/updata/clamd. pid Delete the preceding comment path and change it to line 1.
DatabaseDirectory/usr/local/clamav/updata is the same as row 65th above.
12. Edit vi/usr/local/clamav/etc/freshclam. conf.
# Example comment out this line. 8th rows
DatabaseDirectory/usr/local/clamav/updata row 13th
UpdateLogFile/usr/local/clamav/logs/freshclam. log row 17th
PidFile/usr/local/clamav/updata/freshclam. pid row 51st
13. Create a log file
Touch/usr/local/clamav/logs/freshclam. log
Chown clamav: clamav/usr/local/clamav/logs/freshclam. log
Touch/usr/local/clamav/logs/clamd. log
Chown clamav: clamav/usr/local/clamav/logs/clamd. log
Chown clamav: clamav/usr/local/clamav/updata
/Usr/local/clamav/bin/freshclam (upgrade the virus database) ensures that your LINUX system can access the Internet normally. Upgrading the virus database slows down. Please wait.
#### Sometimes, when you use the clamscan command, an error is reported. In this case, you can perform a soft connection ###
Ln-s/usr/local/clamav/updata // usr/local/clamav/share/clamav
14. start to use the command to check for viruses/usr/local/clamav/bin/clamscan-r/home (create a directory to start virus detection). If the virus is detected, run the -- remove command, -l/var/log/clamscan. log generation log File