Centos6.5 install anti-virus software clamav

Source: Internet
Author: User
1. install the clamav File 1. use the rz-y command to upload the file to the/usr/local/src directory 2. create the clamav group groupaddclamav3. create the clamav user useradd-gclamavclamav & nbs

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

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.