Centos6 install ClamAV antivirus tool

Source: Internet
Author: User
Tags eicar
[Root @ localhost ~] # Yuminstallclamav * [root @ localhost ~] # Yuminstallclamd * [root @ localhost ~] # Chkconfigclamdon [root @ localhost ~] # Chkconfig & amp; ndash; listclamdclamd0: off [root @ localhost ~] # Yum install clamav * [root @ localhost ~] # Yum install clamd * [root @ localhost ~] # Chkconfig clamd on [root @ localhost ~] # Chkconfig-list clamdclamd 0: off 1: off 2: on 3: on 4: on 5: on 6: off [root @ localhost ~] # Service clamd startStarting Clam AntiVirus Daemon: LibClamAV Warning: **************************************** * ********* LibClamAV Warning: * ** The virus database is older than 7 days! * ** LibClamAV Warning: ** Please update it as soon as possible. *** LibClamAV Warning: **************************************** * ********* root @ localhost ~] # Freshclam # upgrade the virus database ClamAV update process started at Thu Jan 10 15:53:58 2013main. cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven) WARNING: getfile: daily-15077.cdiff not found on remote server (IP: 202.118.1.40) WARNING: getpatch: Can't download daily-15077.cdiff from db.cn. clamav. netWARNING: getfile: daily-15077.cdiff not found on remote server (IP: 200.236.31.1) WARNING: get Patch: Can't download daily-15077.cdiff from db.cn. clamav. netWARNING: getpatch: Can't download daily-15077.cdiff from db.cn. clamav. netWARNING: Incremental update failed, trying to download daily. cvdDownloading daily. cvd [1, 100%] daily. cvd updated (version: 16457, sigs: 530720, f-level: 63, builder: neo) Downloading bytecode. cvd [1, 100%] bytecode. cvd updated (version: 209, sigs: 40, f-level: 63, builder: Neo) Database updated (1575147 signatures) from db.cn.clamav.net (IP: 200.236.31.1) WARNING: Clamd was NOT notified: Can't connect to clamd through/var/run/clamav/clamd. sockconnect (): No such file or directory [root @ localhost ~] # Service clamd startStarting Clam AntiVirus Daemon: [OK] [root @ localhost ~] # Clamscan # scan files/root /. cshrc: OK/root /. imsettings. log: OK/root /. esd_auth: OK/root/clamav-0.97.6-1.el6.rf.x86_64.rpm: OK/root/install. log: OK/root /. recently-used.xbel: OK/root/clamd-0.97.6-1.el6.rf.x86_64.rpm: OK/root /. tcshrc: OK/root /. bash_logout: OK/root/clamav-devel-0.97.6-1.el6.rf.x86_64.rpm: OK/root /. pulse-cookie: OK/root/install. log. syslog: OK/root /. bash_profile: OK/root /. bashrc: OK/root /. mysq Rochelle History: OK/root/clamav-db-0.97.6-1.el6.rf.x86_64.rpm: OK/root /. gtk-bookmarks: OK/root/anaconda-ks.cfg: OK/root /. bash_history: OK/root /. xauthority: Empty file/root /. ICEauthority: OK ---- SCAN SUMMARY ---- Known viruses: 1569751 Engine version: 0.97.6Scanned directories: 1 Scanned files: 20 Infected files: 0 Data scanned: 2.25 MBData read: 36.50 MB (ratio 0.06: 1) Time: 3.515 sec (0 m 3 s) download virus file [root @ loc Alhost ~] # Wget http://www.eicar.org/download/eicar.com [Root @ localhost ~] # Wget http://www.eicar.org/download/eicar_com.zip [Root @ localhost ~] # Clamscan-remove # SCAN and delete files with viruses ---- scan summary ---- Known viruses: 1569751 Engine version: 0.97.6Scanned directories: 1 Scanned files: 23 Infected files: 2 Data scanned: 2.25 MBData read: 36.51 MB (ratio 0.06: 1) Time: 3.462 sec (0 m 3 s) create scan script, enable it to automatically execute [root @ localhost ~] in a period of time # Vi clamsc. sh #/bin/bashdate_time = 'date + % Y % m % d' data _ path =/mntPATH =/usr/bin: /binclamscan-r-remove $ {data_path}>/var/log/clamdscan _ $ {date_time }. log [root @ localhost ~] # Crontab-l * 12 ***/clamsc. sh
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.