朗读训练记⼀次离线安装Clamav过程与⽅法
离线安装(没有⽹络的情况下)
yum -y install gcc gcc-c++ openssl-devel
yum install libcurl-devel -y #安装clamav的依赖包
tar -zxvf clamav-0.103. #接着解压包
3.编译安装
cd clamav-0.103.0
./configure --prefix=/usr/local/clamav --with-pcre
make&&make install
4.创建⽤户和组
groupadd clamav &&uradd -g clamav clamav &&id clamav #创建clamav运⾏⽤户和组
5.创建⽇志和病毒库⽬录并更改权限
mkdir -p /usr/local/clamav/logs
mkdir -p /usr/local/clamav/updata
touch /usr/local/clamav/logs/clamd.log
touch /usr/local/clamav/logs/freshclam.log
chown clamav:clamav /usr/local/clamav/logs/clamd.log
干老奶奶视频chown clamav:clamav /usr/local/clamav/logs/freshclam.log
chown clamav:clamav /usr/local/clamav/updata
6.修改配置⽂件
vim f
# Example 注释掉这⼀⾏
LogFile /usr/local/clamav/logs/clamd.log
PidFile /usr/local/clamav/updata/clamd.pid
DatabaDirectory /usr/local/clamav/updata
vim f
# Example 注释掉这⼀⾏
DatabaDirectory /usr/local/clamav/updata
UpdateLogFile /usr/local/clamav/logs/freshclam.log
PidFile /usr/local/clamav/updata/freshclam.pid
7.将下载好了三个病毒库⽂件放在databadirectory的⽬录⾥,这⾥咱们编辑的时候写得⽬录是/usr/local/clamav/update,就把三个⽂件放在这个⽬录下
8.使⽤⽅法
cd /usr/local/clamav/bin/
吴蓝
物联网工程专业学什么./freshclam #(升级病毒库) (没有⽹不需要升级病毒库)
逆渗透纯水机./clamscan --no-summary -ri /tmp #这个命令,只显⽰找到的病毒信息
/usr/local/clamav/bin/clamscan -r --move [路径]#扫描并将发现的病毒⽂件移动⾄对应的路径下
/usr/local/clamav/bin/clamscan -r --remove #删除扫描过程中的发现的病毒⽂件
/usr/local/clamav/bin/clamscan -r --bell -i /data --扫描data⽬录下的所有⽬录和⽂件,只显⽰有问题的扫描结果
养血安神片说明书她的背影歌词9.做⼀个软链接
ln -s /usr/local/clamav/bin/clamscan /usr/local/sbin/clamscan
江苏省教育考试院
10.扫描并移动病毒和感染⽂件到指定⽬录
mkdir -p /home/bill/my_virus_collection
cd /home/bill/my_virus_collection
touch clamscan.log
clamscan -r -i / --move=/home/bill/my_virus_collection -l /home/bill/my_virus_collection\clamscan.log