如何使用MinIO 建立阿里云OSS代理

新技术 专栏收录该内容
1 篇文章 0 订阅

一、安装MinIO

访问MinIO中国下载最新的MinIO,使用办法如下:

wget   http://dl.minio.org.cn/server/minio/release/linux-amd64/minio
chmod +x minio
./minio server /mnt/data

仔细查询MinIO的命令发现,MinIO是支持S3协议作为网关进行使用的,而按照官方提示中也存在S3的网关行为:

NAME:
  minio gateway - start object storage gateway

USAGE:
  minio gateway COMMAND [COMMAND FLAGS | -h] [ARGUMENTS...]

COMMANDS:
  nas    Network-attached storage (NAS)
  azure  Microsoft Azure Blob Storage
  s3     Amazon Simple Storage Service (S3)
  hdfs   Hadoop Distributed File System (HDFS)
  gcs    Google Cloud Storage
  

二、申请阿里云的key 和secret

我们先在阿里云上申请key 和secret

在阿里云的控制台,点击账户头像、选择accessKey,点击创建,创建成功申请载图如下:

图片

三、查看OSS节点信息

  1. 选择OSS

  2. 进入到概览

  3. 复制节点信息:oss-cn-beijing.aliyuncs.com

图片

四、配置Minio相关信息

[root@10-255-20-168 ~]# export MINIO_ROOT_USER=LTAI5tQrXiSonzaAL7
[root@10-255-20-168 ~]# export MINIO_ROOT_PASSWORD=Laq4IELR6DBHoLIoKCTt


 ./minio gateway s3 https://oss-cn-beijing.aliyuncs.com/
 
 

启动成功:

图片

五、页面访问

输入key和secret,访问成功:

图片

六、总结

内网使用OSS MinIO作为网关代理,可以极大的提升内网的传速速度,实现内外网的对象存储内容一致性。

  • 0
    点赞
  • 1
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

打赏
文章很值,打赏犒劳作者一下
<p><img src="https://img-bss.csdnimg.cn/202010270552121581.png" alt="" width="750" height="422" /></p> <div class="line" data-key="374"><strong><span class="prism-token token title important">简介</span></strong></div> <div class="line" data-key="414" data-slate-fragment="JTdCJTIyb2JqZWN0JTIyJTNBJTIyZG9jdW1lbnQlMjIlMkMlMjJkYXRhJTIyJTNBJTdCJTdEJTJDJTIybm9kZXMlMjIlM0ElNUIlN0IlM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UI4JUU1JUE0JTg0JUU3JTkwJTg2JUUzJTgwJTgxJUU1JTg1JUE4JUU1JUIxJTgwJUU2JTk3JUE1JUU1JUJGJTk3JUU3JUFFJUExJUU3JTkwJTg2JUUzJTgwJTgxJUU1JTg4JTg2JUU1JUI4JTgzJUU1JUJDJThGJUU2JTk2JTg3JUU0JUJCJUI2JUU3JUIzJUJCJUU3JUJCJTlGJUU3JUFEJTg5JUU3JTlGJUE1JUU4JUFGJTg2JUU5JTlCJTg2JUU1JTkwJTg4JTIyJTJDJTIybWFya3MlMjIlM0ElNUIlNUQlN0QlNUQlN0QlNUQlN0QlNUQlN0Q="><span data-key="413">Spring Boot 2.x配置优化、自动装配、模板使用、生命周期、嵌入式容器、全局异常处理、全局日志管理、分布式文件系统等知识集合</span></div> <div class="line" data-key="414" data-slate-fragment="JTdCJTIyb2JqZWN0JTIyJTNBJTIyZG9jdW1lbnQlMjIlMkMlMjJkYXRhJTIyJTNBJTdCJTdEJTJDJTIybm9kZXMlMjIlM0ElNUIlN0IlMjJvYmplY3QlMjIlM0ElMjJibG9jayUyMiUyQyUyMnR5cGUlMjIlM0ElMjJsaW5lJTIyJTJDJTIyZGF0YSUyMiUzQSU3QiU3RCUyQyUyMm5vZGVzJTIyJTNBJTVCJTdCJTIyb2JqZWN0JTIyJTNBJTIydGV4dCUyMiUyQyUyMmxlYXZlcyUyMiUzQSU1QiU3QiUyMm9iamVjdCUyMiUzQSUyMmxlYWYlMjIlMkMlMjJ0ZXh0JTIyJTNBJTIyJTIzJTIzJTIwJUU0JUI4JTkzJUU2JUEwJThGJUU3JUFFJTgwJUU0JUJCJThCJUVGJUJDJTg4NjAlRTUlQUQlOTclRUYlQkMlODklMjIlMkMlMjJtYXJrcyUyMiUzQSU1QiU1RCU3RCU1RCU3RCU1RCU3RCUyQyU3QiUyMm9iamVjdCUyMiUzQSUyMmJsb2NrJTIyJTJDJTIydHlwZSUyMiUzQSUyMmxpbmUlMjIlMkMlMjJkYXRhJTIyJTNBJTdCJTdEJTJDJTIybm9kZXMlMjIlM0ElNUIlN0IlMjJvYmplY3QlMjIlM0ElMjJ0ZXh0JTIyJTJDJTIybGVhdmVzJTIyJTNBJTVCJTdCJTIyb2JqZWN0JTIyJTNBJTIybGVhZiUyMiUyQyUyMnRleHQlMjIlM0ElMjJTcHJpbmclMjBCb290JTIwMi54JUU5JTg1JThEJUU3JUJEJUFFJUU0JUJDJTk4JUU1JThDJTk2JUUzJTgwJTgxJUU4JTg3JUFBJUU1JThBJUE4JUU4JUEzJTg1JUU5JTg1JThEJUUzJTgwJTgxJUU2JUE4JUExJUU2JTlEJUJGJUU0JUJEJUJGJUU3JTk0JUE4JUUzJTgwJTgxJUU3JTk0JTlGJUU1JTkxJUJEJUU1JTkxJUE4JUU2JTlDJTlGJUUzJTgwJTgxJUU1JUI1JThDJUU1JTg1JUE1JUU1JUJDJThGJUU1JUFFJUI5JUU1JTk5JUE4JUUzJTgwJTgxJUU1JTg1JUE4JUU1JUIxJTgwJUU1JUJDJTgyJUU1JUI4JUI4JUU1JUE0JTg0JUU3JTkwJTg2JUUzJTgwJTgxJUU1JTg1JUE4JUU1JUIxJTgwJUU2JTk3JUE1JUU1JUJGJTk3JUU3JUFFJUExJUU3JTkwJTg2JUUzJTgwJTgxJUU1JTg4JTg2JUU1JUI4JTgzJUU1JUJDJThGJUU2JTk2JTg3JUU0JUJCJUI2JUU3JUIzJUJCJUU3JUJCJTlGJUU3JUFEJTg5JUU3JTlGJUE1JUU4JUFGJTg2JUU5JTlCJTg2JUU1JTkwJTg4JTIyJTJDJTIybWFya3MlMjIlM0ElNUIlNUQlN0QlNUQlN0QlNUQlN0QlNUQlN0Q="> </div> <div class="line" data-key="431"><span data-key="430"><span data-slate-leaf="true" data-offset-key="430:0"><span class="prism-token token list punctuation"><span data-slate-content="true">*</span></span></span><span data-slate-leaf="true" data-offset-key="430:1"><span data-slate-content="true"> 针对希望对Spring Boot有系统深入学习的初中高级程序员</span></span></span></div> <div class="line" data-key="433"><span data-key="432"><span data-slate-leaf="true" data-offset-key="432:0"><span class="prism-token token list punctuation"><span data-slate-content="true">*</span></span></span><span data-slate-leaf="true" data-offset-key="432:1"><span data-slate-content="true"> 视频专栏:看得懂、学得会、做得出</span></span></span></div> <div class="line" data-key="435"><span data-key="434"><span data-slate-leaf="true" data-offset-key="434:0"><span class="prism-token token list punctuation"><span data-slate-content="true">*</span></span></span><span data-slate-leaf="true" data-offset-key="434:1"><span data-slate-content="true"> 视频中没有废话、全是干货,经过细致备课与后期剪辑制作</span></span></span></div> <div class="line" data-key="437"><span data-key="436"><span data-slate-leaf="true" data-offset-key="436:0"><span class="prism-token token list punctuation"><span data-slate-content="true">*</span></span></span><span data-slate-leaf="true" data-offset-key="436:1"><span data-slate-content="true"> 让您用最少的时间学到最多的知识</span></span></span></div> <div class="line" data-key="439" data-slate-fragment="JTdCJTIyb2JqZWN0JTIyJTNBJTIyZG9jdW1lbnQlMjIlMkMlMjJkYXRhJTIyJTNBJTdCJTdEJTJDJTIybm9kZXMlMjIlM0ElNUIlN0IlMjJvYmplY3QlMjIlM0ElMjJibG9jayUyMiUyQyUyMnR5cGUlMjIlM0ElMjJsaW5lJTIyJTJDJTIyZGF0YSUyMiUzQSU3QiU3RCUyQyUyMm5vZGVzJTIyJTNBJTVCJTdCJTIyb2JqZWN0JTIyJTNBJTIydGV4dCUyMiUyQyUyMmxlYXZlcyUyMiUzQSU1QiU3QiUyMm9iamVjdCUyMiUzQSUyMmxlYWYlMjIlMkMlMjJ0ZXh0JTIyJTNBJTIyKiUyMCUyMCUyMCVFOSU5MiU4OCVFNSVBRiVCOSVFNSVCOCU4QyVFNiU5QyU5QiVFNSVBRiVCOVNwcmluZyUyMEJvb3QlRTYlOUMlODklRTclQjMlQkIlRTclQkIlOUYlRTYlQjclQjElRTUlODUlQTUlRTUlQUQlQTYlRTQlQjklQTAlRTclOUElODQlRTUlODglOUQlRTQlQjglQUQlRTklQUIlOTglRTclQkElQTclRTclQTglOEIlRTUlQkElO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U1JTkwJUFCU3ByaW5nJUU3JTlBJTg0JUU1JTlGJUJBJUU3JUExJTgwJUU2JUIzJUE4JUU4JUE3JUEzJUU3JUFEJTg5JUU1JTg1JUE1JUU5JTk3JUE4JUU3JTlGJUE1JUU4JUFGJTg2JUUzJTgwJTgxJUU0JUI5JTlGJUU0JUJDJTlBJUU1JThDJTg1JUU1JTkwJUFCJUU1JTg4JTg2JUU1JUI4JTgzJUU1JUJDJThGJUU0JUJBJThCJUU1JThBJUExJUU3JTlBJTg0JUU2JUI3JUIxJUU1JTg1JUE1JUU1JTg2JTg1JUU1JUFFJUI5JTIyJTJDJTIybWFya3MlMjIlM0ElNUIlNUQlN0QlNUQlN0QlNUQlN0QlNUQlN0Q="><span data-key="438"><span data-slate-leaf="true" data-offset-key="438:0"><span class="prism-token token list punctuation"><span data-slate-content="true">*</span></span></span><span data-slate-leaf="true" data-offset-key="438:1"><span data-slate-content="true"> 由浅入深,既包含Spring的基础注解等入门知识、也会包含分布式事务的深入内容</span></span></span></div> <p> </p>
相关推荐
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页

打赏

python_李文凯

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值