วันอังคารที่ 20 กรกฎาคม พ.ศ. 2553

yum install clamd clamav

OS CentOS 5.3

ขั้นตอนที่ 01 : wget -O /etc/yum.repos.d/CentOS-Base.repo http://thzhost.com/files/thai.repo

ขั้นตอนที่ 02 : yum install clamd clamav

ขั้นตอนที่ 03 : clamscan -r -i

LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************

----------- SCAN SUMMARY -----------
Known viruses: 572031
Engine version: 0.95.2
Scanned directories: 1
Scanned files: 2
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 2.329 sec (0 m 2 s)


( ถ้าขึ้น LibClamAV Warning ให้อัพเดรตก่อน ขั้นตอนถัดไป )


ขั้นตอนที่ 04 : freshclam

ขั้นตอนที่ 05 : clamscan -r -i ( สั่ง scan อีกรอบ )

ขั้นตอนที่ 06 : ต้องการ scan แบบไหน ตำแหน่งใด พิมพ์ man clamscan ครับ
from h ttp://www.thaihosttalk.com/index.php?topic=21288.0