[英]How to configure AWS EBS volume to store images?
I am very new to AWS, so I would like for some guidance here. 我是AWS的新手,所以我想在这里获得一些指导。
I currently have an EC2 windows 2012 instance setup and running. 我目前有一个EC2 Windows 2012实例设置并正在运行。 It has a default OS EBS volume and I have created a new EBS volume that I would like dedicated to storing image from my application. 它具有默认的OS EBS卷,我创建了一个新的EBS卷,我想专门用于存储应用程序中的映像。
My application executes a function to save an image to file: 我的应用程序执行一个将图像保存到文件的功能:
string originalPath = Path.Combine(HttpRuntime.AppDomainAppPath, "assets/snapshots/originals/" + m_FolderName + "/" + m_FileName + "." + m_FileType);
m_Bitmap.SaveImage(originalPath, m_FileType, m_FileQuality);
I guess I have a few questions. 我想我有几个问题。
1) I have the volume initiated, but no drive associated yet. 1)我已经启动了该卷,但是尚未关联任何驱动器。 What is the best practice on setting up a separate disk volume in Windows in EC2? 在Windows中在EC2中设置单独的磁盘卷的最佳实践是什么?
2) How do I configure this so that the web application and load the images from '/assets/snapshots/originals/'? 2)如何配置它,以便Web应用程序从“ / assets / snapshots / originals /”加载图像?
If this is not a good practice, please advise and let me know how this should be tackled instead. 如果这不是一个好的做法,请提出建议,并让我知道应该如何解决。
Thanks in advance, 提前致谢,
Rick 里克
Ok, I think I figure it out to at least get it to work. 好的,我认为我想出办法至少可以使它正常工作。 While it may not be a best approach, here is what I did for those also looking for a tutorial. 尽管这可能不是最佳方法,但是这是我为那些也在寻找教程的人所做的。 (windows instance) (Windows实例)
Goto AWS EC2 dashboard. 转到AWS EC2仪表板。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.