【问题标题】:Azure Storage Emulator store data on specific pathAzure 存储模拟器将数据存储在特定路径上
【发布时间】:2014-07-03 11:31:14
【问题描述】:

在我当前的 PC 设置中,我安装了 SSD 和普通硬盘。 SSD 只有 120GB 的容量,由于我正在开发一个大型应用程序,该应用程序将分配的文件存储在 azure blob 存储中,我希望指定 microsoft azure storage emulator 必须将我的文件存储到哪个硬盘驱动器。

我正在使用最新的存储模拟器 (3.0)。

谢谢

【问题讨论】:

    标签: azure azure-storage azure-blob-storage


    【解决方案1】:

    存储模拟器将此设置保存在一个名为 WAStorageEmulator.5.2.config 的文件中,该文件位于 C:\Users\{Your Current User Name}\AppData\Local\AzureStorageEmulator 文件夹中。打开此文件并更改该配置文件中 PageBlobRootBlockBlobRoot 元素的设置。例如,在下面的 XML 中,我更改了设置,以便将文件写入块 blob 的 D:\ 而不是 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\AzureStorageEmulator\PageBlobRoot</PageBlobRoot>
      <BlockBlobRoot>D:\Users\Gaurav.Mantri\AppData\Local\AzureStorageEmulator\BlockBlobRoot</BlockBlobRoot>
      <LogPath>C:\Users\Gaurav.Mantri\AppData\Local\AzureStorageEmulator\Logs</LogPath>
      <LoggingEnabled>false</LoggingEnabled>
    </StorageEmulator>
    

    您可能需要重新启动存储模拟器才能使设置生效。

    【讨论】:

    • 现在它被命名为AzureStorageEmulator所以路径是%userprofile%\Local\AzureStorageEmulator
    • 仅供参考,最新路径是%userprofile%\AppData\Local\AzureStorageEmulator
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-08
    • 1970-01-01
    相关资源
    最近更新 更多