具体路径上Azure存储模拟器存储数据 [英] Azure Storage Emulator store data on specific path
问题描述
在我目前的PC设置我有一个SSD和安装普通硬盘。
固态硬盘只有120GB的容量,因为我开发一个大型的应用程序存储在配发蔚蓝Blob存储我哗哗指定要哪个硬盘驱动器微软Azure存储模拟器具有存储我的文件的文件。
At my current PC setup I have an SSD and a normal hard drive installed. The SSD only has a capacity of 120GB and since I'm developing a large application which stores allot of files in azure blob storage I whish to specify to which hard drive the microsoft azure storage emulator has to store my files.
我使用的是最新的存储模拟器(3.0)。
I am using the latest storage emulator (3.0).
THX
推荐答案
存储模拟器保持此设置在一个文件名为 WAStorageEmulator.3.0.config
可以在 C下找到:\\用户\\ {当前用户名} \\应用程序数据\\本地\\ WAStorageEmulator
文件夹中。打开此文件并更改 PageBlobRoot
和 BlockBlobRoot
设置在配置文件中STRONG>元素。例如,在下面的XML,我改变,以便这些文件都写在 D的设置:\\
块斑点,而不是 C:\\
。
Storage emulator keeps this setting in a file called WAStorageEmulator.3.0.config
which can be found in C:\Users\{Your Current User Name}\AppData\Local\WAStorageEmulator
folder. Open up this file and change the settings for PageBlobRoot
and BlockBlobRoot
elements in that configuration file. For example, in the XML below, I changed the settings so that the files are written in D:\
for block blobs instead of C:\
.
<?xml version="1.0"?>
<StorageEmulator xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SQLInstance>.\SQLExpress</SQLInstance>
<PageBlobRoot>C:\Users\Gaurav.Mantri\AppData\Local\WAStorageEmulator\PageBlobRoot</PageBlobRoot>
<BlockBlobRoot>D:\Users\Gaurav.Mantri\AppData\Local\WAStorageEmulator\BlockBlobRoot</BlockBlobRoot>
<LogPath>C:\Users\Gaurav.Mantri\AppData\Local\WAStorageEmulator\Logs</LogPath>
<LoggingEnabled>false</LoggingEnabled>
</StorageEmulator>
您可能需要重新启动存储模拟器使设置生效。
You may need to restart the storage emulator for the settings to take effect.
这篇关于具体路径上Azure存储模拟器存储数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!