原创内容,转载请注明出处:https://www.myzhenai.com.cn/post/1367.html https://www.myzhenai.com/thread-15880-1-1.html
很多教程,包括官方文档里都说要升级clamav病毒库需要运行freshclam程序,但是不知道为什么,我本地源码编译安装的clamav0.98却无法正确运行,一直提示有问题,不知道是不是freshclam.conf文档的配置有问题.但是我通过另外一个方法解决了clamav病毒库的升级问题.
编译安装clamav:https://www.myzhenai.com/thread-15526-1-1.html https://www.myzhenai.com.cn/post/1061.html
#wget https://downloads.sourceforge.net/clamav/clamav-0.98.tar.gz #tar -xzvf clamav-0.98.tar.gz #cd clamav-0.98 #./configure #make #make install
升级病毒库:
#cd /var/clamav/ #wget https://db.cn.clamav.net/safebrowsing.cvd #wget https://db.cn.clamav.net/bytecode.cvd #cd .. #cd /var/lib/clamav/ #wget https://db.cn.clamav.net/daily.cvd #wget https://db.cn.clamav.net/main.cvd #wget https://db.cn.clamav.net/safebrowsing.cvd
clamav病毒库查询页面:https://www.clamav.net/lang/en/
baidu:https://pan.baidu.com/s/1Id34
360yun:https://yunpan.cn/QGhAV43jWRsnj
sicnature ---------------------------------------------------------------------
I P 地 址: 18.222.182.26
区 域 位 置: 美国俄亥俄
系 统 信 息:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普 | 海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://myzhenai.com.cn/post/1367.html
3条评论
# Linux CentOS Server Shell Tools
# !/bin/bash
# qing chu duo yu wen jian he la ji wen jian .
rm -rf /var/clamav/safebrowsing.cvd
rm -rf /var/clamav/bytecode.cvd
echo ‘******************zheng zhai shan chu*******************’;
rm -rf /var/lib/clamav/daily.cvd
rm -rf /var/lib/clamav/main.cvd
rm -rf /var/lib/clamav/safebrowsing.cvd
echo ‘******************di we chi shan chu********************’;
wget http://db.cn.clamav.net/safebrowsing.cvd
wget http://db.cn.clamav.net/bytecode.cvd
wget http://db.cn.clamav.net/daily.cvd
wget http://db.cn.clamav.net/main.cvd
echo ‘******************xia zhai wan bi***********************’;
cp safebrowsing.cvd /var/clamav/
mv safebrowsing.cvd /var/lib/clamav/
mv bytecode.cvd /var/clamav/
mv daily.cvd /var/lib/clamav/
mv main.cvd /var/lib/clamav/
echo ‘*********************************************************’;
echo ‘**** ****’;
echo ‘**** cao zuo jie shu ****’;
echo ‘**** ming ling yi jing zhi xing wan cheng . ****’;
echo ‘**** ****’;
echo ‘**** http://www.myzhenai.com.cn ****’;
将以上内容复制到文本编辑器里保存为 clamav.sh 文件,然后运行脚本可以自动更新.将脚本丢到计划任务里就能实现自动更新了.
#sh clamav.sh
将安装目录下的clamd.conf.sample freshclam.conf.sample 重命名为clamd.conf freshclam.conf 然后编辑配置文件即可以正常使用.
各种版本的clamav rpm版本下载地址 http://pkgs.repoforge.org/clamav/