需要下載Linux版本的AntiVir的服務器端軟件包,包名為avlxsrv.tgz。
http://www.hbedv.com/files/antivir/release/avlxsrv.tgz
2.安裝AntiVir for Server
解壓到指定目錄
# tar -xzpvf avlxsrv.tgz -C /var/local
# cd /var/local/antivir-server-2.0.8 閱讀Readme
# more README 安裝
[root@terry antivir-server-2.0.8]# ./install Starting AntiVir for UNIX Server 2.0.8 installation... 安裝過程會分步驟進行,每個步驟中會一些關於設定的問題,如果你詳細閱讀了相關文檔,就可以自己定制一些特殊的功能,請參閱相關文檔,這裡就不做介紹了,你可以按默認的值一路按回車繼續。直到以下文字出現,安裝就完成了: Here are some commands that you should remember... AntiVir
=======
configure: /usr/lib/AntiVir/configantivir Press <ENTER> to continue. Installation of the following features complete:
AntiVir command line scanner If you have any license key files, please copy them to /usr/lib/AntiVir
before running the software. Without a valid license key, it will
run in DEMO mode. Be sure to read the README file for additional information.
Thank you for your interest in AntiVir for UNIX. 3.注冊一個key
安裝完成後,要去http://www.antivir.de/申請一個key,否則的話AntiVir就只能以DEMO方式運行。目前 (2003年8月)的URL是http://www.antivir.de/order/privreg/order_e.htm,key會發到你申請時填寫的email信箱中,填寫完注冊頁面後,大約幾分鐘後,你將收到兩個附件hbedv.key和lic_info.txt,將hdedv.key保存到本地後,將其復制到/usr/lib/AntiVir目錄中: # cp hbedv.key /usr/lib/AntiVir 這樣你就可以使用到AntiVir的全部功能了,注冊是不收費的 [root@terry /]# antivir
AntiVir / Linux Version 2.0.8-1
Copyright (C) 1994-2003 by H+BEDV Datentechnik GmbH.
All rights reserved. Loading /usr/lib/AntiVir/antivir.vdf ... VDF version: 6.21.0.2 created 22 Jul 2003 For private, non- commercial use only.
AntiVir license: 1001049056 for terry, shanghai checking drive/path (cwd): / ----- scan results -----
directories: 1
files: 0
alerts: 0
scan time: 00:00:01
------------------------
Thank you for using AntiVir.
4.使用
取得一個key後,就可以使用到AntiVir的全部功能了。現在可以通過命令行啟動AntiVir來進行殺毒工作了,以下是針對我機器上/mykms目錄中所有文件的一次殺毒工作,其命令和輸入如下:
[root@terry /]# antivir /mykms/ -allfiles -s
AntiVir / Linux Version 2.0.8-1
Copyright (C) 1994-2003 by H+BEDV Datentechnik GmbH.
All rights reserved. Loading /usr/lib/AntiVir/antivir.vdf ... VDF version: 6.21.0.2 created 22 Jul 2003 For private, non- commercial use only.
AntiVir license: 1001049056 for terry, shanghai checking drive/path (list): /mykms/
/mykms/SOS/An_Book_DB/eBook/UNIX/UNIX基礎膠片.ppt
Date: 9.05.2003 Time: 06:25:00 Size: 4724736
warning: this OLE2 file may be corrupted /mykms/SOS/An_Book_DB/eBook/中軟安全/信息與網絡安全現狀與威脅.ppt
Date: 30.05.2003 Time: 01:51:00 Size: 1810944
warning: this OLE2 file may be corrupted /mykms/SOS/An_Book_DB/eBook/中軟安全/分布式網絡信息監控與網絡犯罪取證系統產品介紹0 418.ppt
Date: 30.05.2003 Time: 01:47:00 Size: 2705920
warning: this OLE2 file may be corrupted /mykms/SOS/Knowledges/uml/arch4.ppt
Date: 25.04.2000 Time: 15:18:44 Size: 3030016
warning: this OLE2 file may be corrupted
----- scan results -----
directories: 2713
files: 47003
alerts: 0
warnings: 4
scan time: 00:25:30
------------------------
Thank you for using AntiVir. 可以注意到:
第一:系統有正確的key:AntiVir license: 1001049056 for terry, shanghai
第二:系統發現了4個受感染的文件,並且列出了文件名等信息
第三:系統用25分鐘多掃完了47003個文件,給出了簡單的掃描結果