Install anti-virus software clamav in centos 6.5

Source: Internet
Author: User

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

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.