Azure 上的动态文件托管
我正在使用 Windows Azure 来实现自定义博客。该博客使用CKEditor和CKFinder文件管理插件。通常,文件管理插件连接到文件系统目录来存储文件。我需要将它们存储为本地目录,并通过 HTTP 请求提供它们。在 Azure 中,您不能依赖文件系统通过回收进行维护。
我假设您将使用 Azure 存储,但我不知道如何执行此操作。有没有办法将这些存储系统“挂载”到文件系统上?我对使用存储的假设是否正确?如果没有关于我缺少什么的任何指导?
谢谢
I am using Windows Azure for a custom blog implementation. The blog uses CKEditor and the CKFinder file management plugin. Typically the file management plugin connects to a file system directory to store the files. I need to store these as if it was a local directory and serve them through HTTP requests. In Azure you cannot rely on the file system to maintain through recycles.
I assume you are to use Azure Storage, but am at a loss as to how to do this. Is there a way to "mount" these storage systems to the file system? Am I correct in my assumptions to use storage? If not any guidance as to what I am missing?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
或者,您可以使用 AzureBlobDrive 将 Blob 存储直接挂载为 Azure 中的驱动器(无 VHD,不限制只有一个实例能够写入)。
https://github.com/richorama/AzureBlobDrive
Or, you could use AzureBlobDrive to mount blob storage as a drive in Azure directly (no VHD, no limitation on only one instance being able to write).
https://github.com/richorama/AzureBlobDrive
实际上,您可以将页面 blob 安装为 NTFS 驱动器,这样它就是一个“耐用驱动器”(就像任何其他 blob 一样),并且您可以通过驱动器号访问它,就像本地连接的(但易失性)驱动器一样。
问题是,使用安装的驱动器时,您可能只有一个写入器,因此这可能会在扩展到多个实例时带来挑战。
请查看这篇 MSDN 帖子查看安装驱动器的示例。请注意,虽然该示例未设置任何缓存,但您可以指定缓存大小。缓存存储在本地磁盘资源上。
编辑:如需教程,请下载 Windows Azure 培训套件。转到动手实验室,然后打开探索 Windows Azure 存储。查看练习 4:使用驱动器。
You can actually mount a page blob as an NTFS drive, which is then a "durable drive" (just like any other blob), and you access it via a drive letter, just like a locally-attached (but volatile) drive.
The issue is that, using mounted drives, you may only have one writer, so this might cause challenges when scaling to multiple instances.
Take a look at this MSDN post to see an example of mounting a drive. Notice that, while the example doesn't set up any cache, you can specify a cache size. The cache is stored on a local disk resource.
EDIT: For a tutorial, download the Windows Azure Training Kit. Go to hands-on labs, and open Exploring Windows Azure Storage. Check out Exercise 4: Working with Drives.