You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.5 KiB
43 lines
1.5 KiB
|
|
# MinIO Azure 网关 [![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io)
|
|
MinIO网关将亚马逊S3兼容性添加到微软Azure Blob存储。
|
|
|
|
## 运行支持微软Azure Blob存储的MinIO网关
|
|
### 使用Docker
|
|
```
|
|
docker run -p 9000:9000 --name azure-s3 \
|
|
-e "MINIO_ROOT_USER=azureaccountname" \
|
|
-e "MINIO_ROOT_PASSWORD=azureaccountkey" \
|
|
minio/minio gateway azure
|
|
```
|
|
|
|
### 使用二进制
|
|
```
|
|
export MINIO_ROOT_USER=azureaccountname
|
|
export MINIO_ROOT_PASSWORD=azureaccountkey
|
|
minio gateway azure
|
|
```
|
|
## 使用MinIO浏览器验证
|
|
MinIO Gateway配有嵌入式网络对象浏览器。 将您的Web浏览器指向http://127.0.0.1:9000确保您的服务器已成功启动。
|
|
|
|
![截图](https://github.com/minio/minio/blob/master/docs/screenshots/minio-browser-gateway.png?raw=true)
|
|
## 使用MinIO客户端 `mc`验证
|
|
`mc` 提供了诸如ls,cat,cp,mirror,diff等UNIX命令的替代方案。它支持文件系统和Amazon S3兼容的云存储服务。
|
|
|
|
### 配置 `mc`
|
|
```
|
|
mc alias set myazure http://gateway-ip:9000 azureaccountname azureaccountkey
|
|
```
|
|
|
|
### 列出微软Azure上的容器
|
|
```
|
|
mc ls myazure
|
|
[2017-02-22 01:50:43 PST] 0B ferenginar/
|
|
[2017-02-26 21:43:51 PST] 0B my-container/
|
|
[2017-02-26 22:10:11 PST] 0B test-container1/
|
|
```
|
|
|
|
## 了解更多
|
|
- [`mc` 命令行接口](https://docs.min.io/cn/minio-client-quickstart-guide)
|
|
- [`aws` 命令行接口](https://docs.min.io/cn/aws-cli-with-minio)
|
|
- [`minio-go` Go SDK](https://docs.min.io/cn/golang-client-quickstart-guide)
|
|
|