centos7.7 clamav 查殺病毒


1、配置環境:
根據自己的系統版本下載相應的epel安裝文件並安裝。

#wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
#wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#rpm -ivh epel-release-latest-6.noarch.rpm

2、安裝clamav

#yum install clamav  clamav-server clamav-data clamav-update clamav-filesystem clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd

3、病毒庫默認地址

病毒庫默認地址是/var/lib/clamav

4、服務操作

systemctl start clamav-freshclam.service
systemctl enable clamav-freshclam.service 
systemctl status clamav-freshclam.service

5、更新病毒庫

cd /var/lib/clamav
wget http://database.clamav.net/main.cvd
wget http://database.clamav.net/daily.cvd
wget http://database.clamav.net/bytecode.cvd

或者,一個命令

freshclam

6、顯示找到的病毒信息

clamscan --no-summary -ri /

7、殺毒

clamscan --infected --remove --recursive /

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM