您好,登錄后才能下訂單哦!
安裝clamav殺毒軟件,并在貴州節點上掃描查殺看是否存在病毒。
編譯ClamAV時應包括zlib庫,用于壓縮和解壓縮函數
軟件:zlib-1.2.7.tar.gz clamav-0.97.6.tar.gz
軟件下載地址:
http://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.7/zlib-1.2.7.tar.gz
http://nchc.dl.sourceforge.net/project/clamav/clamav/0.97.6/clamav-0.97.6.tar.gz
[root@ts181test]#wgethttp://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.7/zlib-1.2.7.tar.gz
[root@ts181test]#wget
http://nchc.dl.sourceforge.net/project/clamav/clamav/0.97.6/clamav-0.97.6.tar.gz
[root@ts181 test]# tar xfzlib-1.2.7.tar.gz
[root@ts181 test]# cd zlib-1.2.7
[root@ts181 zlib-1.2.7]# ./configure
[root@ts181 zlib-1.2.7]# make &&make install
[root@ts181 zlib-1.2.7]# cd ..
添加用戶組clamav和組成員clamav(注:在安裝clamav-0.97.6.tar.gz前必須先添加用戶)
[root@ts181 test]# groupadd clamav
[root@ts181 test]# useradd -g clamav -s/bin/false -c "Clam AntiVirus" clamav
[root@ts181 test]# tar xfclamav-0.97.6.tar.gz
[root@ts181 test]# cd clamav-0.97.6
[root@ts181 clamav-0.97.6]# ./configure--prefix=/opt/clamav --disable-clamav
[root@ts181 clamav-0.97.6]# make&& make install
mkdir /opt/clamav/logs (日志存放目錄)
mkdir /opt/clamav/updata (clanav 病毒庫目錄)
在/var/log目錄下添加兩個logs文件:clamd.log和freshclam.log,將所有者改為新加的clamav用戶,并設置相應的文件讀寫權限
touch /opt/clamav/logs/freshclam.log
touch /opt/clamav/logs/clamd.log
[root@ts181 clamav-0.97.6]# cd/opt/clamav
[root@ts181 clamav]# vim etc/clam.conf
# Example 注釋掉這一行. 第8 行
LogFile /opt/clamav/logs/clamd.log
PidFile /opt/clamav/updata/clamd.pid
DatabaseDirectory /opt/clamav/updata
[root@ts181 clamav]# vimetc/freshclam.conf
#Example 注釋掉這一行
DatabaseDirectory /opt/clamav/updata
UpdateLogFile/opt/clamav/logs/freshclam.log
PidFile/opt/clamav/updata/freshclam.pid
[root@ts181 clamav]# chown clamav:clamav/opt/clamav -R
[root@ts181 clamav]#/opt/clamav/bin/freshclam
##升級病毒庫
[root@ts181 clamav]#/opt/clamav/bin/clamscan --查殺當前目錄下的文件
[root@ts181 clamav]#/opt/clamav/bin/clamscan -r --查殺當前目錄的所有文件及目錄
[root@ts181 clamav]#/opt/clamav/bin/clamscan /home/leng --查殺dir目錄
[root@ts181 clamav]# /opt/clamav/bin/clamscan-r /home/leng --查殺目錄dir下的所有文件及目錄
[root@ts181 clamav]#/opt/clamav/bin/clamscan --help
后臺運行/opt/clamav/bin/freshclam-d
計劃任務:
[root@ts181 clamav]# crontab -e
1 3 * * * /usr/local/clamav/bin/freshclam--quiet
20 3 * * * /usr/local/clamav/bin/clamscan -r/home --remove -l /var/log/clamscan.log
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。