安装页面斑点作为一个批处理文件的VHD [英] Mounting Page Blob as a VHD in a batch file

查看:120
本文介绍了安装页面斑点作为一个批处理文件的VHD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个后续行动,我的<一个href=\"http://stackoverflow.com/questions/10259985/java-access-to-mongodb-server-running-on-windows-azure/10260383#10260383\">stackoverflow帖子:我怎么挂载页BLOB作为辅助角色实例的VHD?驱动安装后,我会把这作为--dbpath参数蒙戈实例的值。

This is a follow-up to my stackoverflow post: how do I mount a page blob as a VHD on worker role instance? After the drive is mounted, I will pass that as the value of --dbpath parameter to mongo instance.

在概括地说,我试图与蔚蓝的BLOB(耐用性)的数据目录启动一个蒙戈实例。我建立在的HelloWorld 例如在Azure上的相关网站 - 而不是启动Tomcat实例,我将开始蒙戈实例。

In a nutshell, I'm trying to start a single mongo instance with the data directory on azure blob (for durability). I'm building on the HelloWorld example on Azure's site-- instead of starting Tomcat instance, I will start mongo instance.

推荐答案

我建议你按照本指南:的http://www.$c$cproject.com/Articles/81413/Windows-Azure-Drives-Part-1-Configure-and-Mounting.本指南介绍如何安装的驱动器,但它也展示了如何可以保存盘符为环境变量。

I suggest you follow this guide: http://www.codeproject.com/Articles/81413/Windows-Azure-Drives-Part-1-Configure-and-Mounting. This guide explains how to mount the drive but it also shows how you can save the drive letter as an environment variable.

这是当你开始蒙戈实例有意思,你可以加上--dbpath使用这个环境变量。也许这将是最好封装所有的code在控制台应用程序,让您可以在启动蒙戈实例之前只需启动它。

This is interesting for when you're starting the mongo instance, you can just use this environment variable together with --dbpath. Maybe it would be best to encapsulate all the code in a console application so that you can simply start it before starting the mongo instance.

这篇关于安装页面斑点作为一个批处理文件的VHD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆