跳转至

Azure

使用 RaiDrive CLI 在 Linux 上挂载 Azure 存储容器或文件共享。使用 Account 和 Key 进行连接。

要获取所需的账户、密钥或 ID,请参见 Windows 应用的 Azure 指南中的准备工作。

raidrivecli add azure --azure-storage-type <blob|file>

如果只带上方所示的选项添加存储,系统会提示您输入 Account 和 Key。

raidrivecli add azure --azure-storage-type blob
Account: <account>
Key: ********

您也可以通过选项指定 Account 或 Key。

raidrivecli add azure --azure-storage-type <blob|file> \
                      --azure-storage-account <account> \
                      --azure-key [key]

警告

Shell 命令会保存在命令历史记录中。建议尽量不要在命令中直接写出 --azure-key 选项的值。

如果未指定挂载目录,存储会挂载到 /mnt 下的相应目录,例如 /mnt/azure。要指定挂载目录,请使用 --mount-path 选项。

raidrivecli add azure --azure-storage-type blob \
                      --mount-path /myservices/azure

与 Windows 应用不同,CLI 没有选择单个容器或文件共享的选项。

信息

Azure China 存储使用 azurechina,而不是 azure。

附加选项

--azure-storage-type <blob|file>        blob, file
--azure-storage-account <account>       account
--azure-key [key]                       key

另请参阅