[root@localhost ~]#cd /etc/yum.repos.d
專注于為中小企業(yè)提供做網(wǎng)站、成都做網(wǎng)站服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)朝陽免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了上1000+企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。[root@localhost ~]#cat >>dag.repo < [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 eof [root@localhost ~]#yum install clamav* --nogpgcheck [root@localhost ~]#yum install clamd* --nogpgcheck [root@localhost ~]# chkconfig clamd on [root@localhost ~]#service clamd start [root@localhost ~]#freshclam #升級病毒庫 ClamAV update process started at Thu Oct 23 18:47:57 2014 Downloading main-55.cdiff [100%] main.cld updated (version: 55, sigs: 2424225, f-level: 60, builder: neo) WARNING: getfile: daily-15077.cdiff not found on remote server (IP: 202.118.1.66) WARNING: getpatch: Can't download daily-15077.cdiff from db.cn.clamav.net WARNING: getfile: daily-15077.cdiff not found on remote server (IP: 200.236.31.1) WARNING: getpatch: Can't download daily-15077.cdiff from db.cn.clamav.net WARNING: getpatch: Can't download daily-15077.cdiff from db.cn.clamav.net WARNING: Incremental update failed, trying to download daily.cvd Downloading daily.cvd [100%] daily.cvd updated (version: 19527, sigs: 1219603, f-level: 63, builder: dgoddard) Downloading bytecode.cvd [100%] bytecode.cvd updated (version: 242, sigs: 46, f-level: 63, builder: dgoddard) Database updated (3643874 signatures) from db.cn.clamav.net (IP: 200.236.31.1) Clamd successfully notified about the update. [root@localhost ~]#clamscan /etc/passwd #掃描指定文件 /etc/passwd: OK ----------- SCAN SUMMARY ----------- Known viruses: 3638312 Engine version: 0.98.4 Scanned directories: 0 Scanned files: 1 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 9.924 sec (0 m 9 s) [root@localhost ~]#wget http://www.eicar.org/download/eicar.com #下載病毒文件 [root@localhost ~]#clamscan eicar.com eicar.com: Eicar-Test-Signature FOUND ----------- SCAN SUMMARY ----------- Known viruses: 3638312 Engine version: 0.98.4 Scanned directories: 0 Scanned files: 1 Infected files: 1 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 11.854 sec (0 m 11 s) [root@localhost ~]#clamscan --remove eicar.com #掃描并刪除病毒 eicar.com: Eicar-Test-Signature FOUND eicar.com: Removed. ----------- SCAN SUMMARY ----------- Known viruses: 3638312 Engine version: 0.98.4 Scanned directories: 0 Scanned files: 1 Infected files: 1 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 10.270 sec (0 m 10 s) [root@localhost ~]#cd / [root@localhost ~]#cat >>clamscan.sh < #/bin/bash date_time=`date +%Y%m%d` data_path=/test PATH=/usr/bin:/bin cd ${data_path} clamscan -r --remove >>/var/log/clamdscan_${date_time}.log eof [root@localhost ~]#chmod 700 clamscan.sh [root@localhost ~]#crontab -e * 2 * * * /clamscan.sh 另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
標(biāo)題名稱:centos6.5下安裝ClamAV殺毒軟件-創(chuàng)新互聯(lián)
URL地址:http://weahome.cn/article/eoiho.html