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