安装和使用的ClamAV(抗病毒)与天青 [英] Setup and Use ClamAV (anti-virus) with Azure
问题描述
我要扫描上传到我的Azure BLOB文件。它看起来像的ClamAV(www.clamav.net)可能是要走的路。我看到如何安装Windows服务器上的说明,但我会的程序是怎样的托管在Azure上一个网站?我使用ASP.NET MVC。
I want to scan the files that are uploaded to my Azure blob. It looks like ClamAV (www.clamav.net) is probably the way to go. I see instructions on how to install on a Windows server, but what would my procedure be for a site hosted on Azure? I am using ASP.NET MVC.
推荐答案
免责声明:我没有用过ClamAV的。话虽如此...
Disclaimer: I haven't used ClamAV. Having said that...
您应该能启动任务(有提升的权限)中进行安装。我看着ClamAV的维基,它看来,微星无声安装:
You should be able to install it during a startup task (with elevated privileges). I looked at the ClamAV wiki, and it appears that the msi has a silent-install:
msiexec /i clamAV.msi /qr
您将需要更改最后一个参数/ QN给力的用户界面。
You'll need to change that last parameter to /qn to force "no user interface."
所面临的挑战将是扫描斑点。你需要从他们的blob文件复制到你的虚拟机实例的本地目录,然后运行该文件clamdscan(基础关闭维基)。
The challenge will be scanning blobs. You'll need to copy files from their blobs to a local directory in your VM instance, and then run clamdscan on that file (basing off the wiki).
我还没有试过,但基本premise应该托起:安装任何需要的MSI作为启动任务(可能需要提升模式)
I haven't tried this, but the basic premise should hold up: Install anything requiring an MSI as a startup task (probably needs elevated mode).
这篇关于安装和使用的ClamAV(抗病毒)与天青的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!