【对象存储 minio】linux 单机版minio安装教程

容器部署--docker 专栏收录该内容
2 篇文章 0 订阅

一、minio是什么?
MinIO 是一个基于Apache License v2.0开源协议的对象存储服务。它兼容亚马逊S3云存储服务接口,非常适合于存储大容量非结构化的数据,例如图片、视频、日志文件、备份数据和容器/虚拟机镜像等,而一个对象文件可以是任意大小,从几kb到最大5T不等。
​ MinIO是一个非常轻量的服务,可以很简单的和其他应用的结合,类似 NodeJS, Redis 或者 MySQL。

二、minio 如何安装?
详细请戳这里:官方中文教程,具体执行步骤如下:

【单机版】centos7.4 下linux 安装minio

mkdir /opt/tools/sinoma_minio
cd /opt/tools/sinoma_minio
wget   http://dl.minio.org.cn/server/minio/release/linux-amd64/minio
chmod +x minio
touch start_minio.sh
vim start_minio.sh
#!/bin/bash
nohup ./minio server /opt/tools/sinoma_minio/data >/opt/tools/sinoma_minio/minio.log &

启动命令:

sh start_minio.sh

杀掉进程:

touch kill_minio.sh
vim kill_minio.sh

#!/bin/bash
ps -ef | grep sinoma_minio | awk '{print $2}'|xargs kill -9

启动以后查看日志有以下信息输出:

API: http://10.1.5.146:9000 http://127.0.0.1:9000
RootUser: minioadmin
RootPass: minioadmin
Console: http://10.1.5.146:45267 http://127.0.0.1:45267
RootUser: minioadmin
RootPass: minioadmin
Command-line: https://docs.min.io/docs/minio-client-quickstart-guide
$ mc alias set myminio http://10.1.5.146:9000 minioadmin minioadmin
Documentation: https://docs.min.io

下面进行防火墙和开发端口的设置。需要设置9000和45267这两个端口

# 查看防火墙状态
firewall-cmd --state
# 添加开放端口
firewall-cmd --zone=public --list-ports
firewall-cmd --zone=public --add-port=9000/tcp --permanent
firewall-cmd --zone=public --add-port=45267/tcp --permanent
firewall-cmd --reload

浏览器输入

http://10.1.5.146:45267
账号:minioadmin
密码:minioadmin

即可进入网页客户端

三、客户端安装
客户端安装中文教程

wget http://dl.minio.org.cn/client/mc/release/linux-amd64/mc

chmod +x mc

四、配置公开下载url
配置下载策略,直接永久可下载

./mc  policy set  public  /opt/tools/sinoma_minio/data/images

配置buckets detail 设置访问权限设置为public

浏览器输入下面地址,ip:port/images/文件名即可访问。

http://10.1.5.146:9000/images/2021-07-15/16/qhhy_2021_07_11_16_56_56.jpg

注明:images 是我们在data下创建的桶(容器概念)
在这里插入图片描述

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

<div class="u-ctn-intro j-course-user-box" style="padding:0px;margin:0px 0px 40px;color:#444444;font-family:Arial, 'Hiragino Sans GB', 微软雅黑, Helvetica, sans-serif;font-size:14px;background-color:#ffffff;"> <h2 class="u-ctit ctit1" style="font-weight:normal;font-size:18px;color:#333333;"> 适用人群 </h2> <p class="j-targetuser cintrocon" style="font-family:微软雅黑;color:#666666;"> 具有java一定基础的同学 </p> </div> <div class="u-ctn-intro u-ctn-intro-last" style="padding:0px;margin:0px 0px 20px;color:#444444;font-family:Arial, 'Hiragino Sans GB', 微软雅黑, Helvetica, sans-serif;font-size:14px;background-color:#ffffff;"> <h2 class="u-ctit ctit1" style="font-weight:normal;font-size:18px;color:#333333;"> 课程概述 </h2> <div class="cintrocon j-courseintro" style="padding:0px;margin:0px;font-family:微软雅黑;color:#666666;"> 学完本课程,您将掌握:<br /> <br /> 完成文件系统的独立搭建和Minio8的API操作分布式文件系统Minio8企业中使用的文件管理系统采用SpringBoot2+Vue进行前后端开发和文件系统的整合实操实战项目,非理论讲解<br /> <br /> <br /> 学习计划:<br /> <br /> 可以一次性学完,也可以用到的时候再学,现查现用<br /> <br /> 课程目标:<br /> 能搭建一套独立的企业文件系统而不耦合任何系统,便成为文件服务器<br /> <br /> 课程简介:<br /> MinIO 是一个基于Apache License v2.0开源协议的对象存储服务。它兼容亚马逊S3云存储服务接口,非常适合于存储大容量非结构化的数据,例如图片、视频、日志文件、备份数据和容器/虚拟机镜像等,而一个对象文件可以是任意大小,从几kb到最大5T不等。<br /> <br /> MinIO是一个非常轻量的服务,可以很简单的和其他应用的结合,类似 NodeJS, Redis 或者 MySQL </div> <div class="cintrocon j-courseintro" style="padding:0px;margin:0px;font-family:微软雅黑;color:#666666;">   </div> <div class="cintrocon j-courseintro" style="padding:0px;margin:0px;font-family:微软雅黑;color:#666666;"> <img alt="" src="https://img-bss.csdnimg.cn/202104080615293173.png" /> </div> <div class="cintrocon j-courseintro" style="padding:0px;margin:0px;font-family:微软雅黑;color:#666666;"> <img alt="" src="https://img-bss.csdnimg.cn/202104080615511370.jpg" /> </div> <div class="cintrocon j-courseintro" style="padding:0px;margin:0px;font-family:微软雅黑;color:#666666;"> <img alt="" src="https://img-bss.csdnimg.cn/202104080621064519.png" /><img alt="" src="https://img-bss.csdnimg.cn/202104080622582452.jpg" /> </div> </div>
相关推荐
<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="JTdCJTIyb2JqZWN0JTIyJTNBJTIyZG9jdW1lbnQlMjIlMkMlMjJkYXRhJTIyJTNBJTdCJTdEJTJDJTIybm9kZXMlMjIlM0ElNUIlN0IlMjJvYmplY3QlMjIlM0ElMjJibG9jayUyMiUyQyUyMnR5cGUlMjIlM0ElMjJsaW5lJTIyJTJDJTIyZGF0YSUyMiUzQSU3QiU3RCUyQyUyMm5vZGVzJTIyJTNBJTVCJTdCJTIyb2JqZWN0JTIyJTNBJTIydGV4dCUyMiUyQyUyMmxlYXZlcyUyMiUzQSU1QiU3QiUyMm9iamVjdCUyMiUzQSUyMmxlYWYlMjIlMkMlMjJ0ZXh0JTIyJTNBJTIyJTIzJTIzJTIwJUU0JUI4JTkzJUU2JUEwJThGJUU3JUFFJTgwJUU0JUJCJThCJUVGJUJDJTg4NjAlRTUlQUQlOTclRUYlQkMlODklMjIlMkMlMjJtYXJrcyUyMiUzQSU1QiU1RCU3RCU1RCU3RCU1RCU3RCUyQyU3QiUyMm9iamVjdCUyMiUzQSUyMmJsb2NrJTIyJTJDJTIydHlwZSUyMiUzQSUyMmxpbmUlMjIlMkMlMjJkYXRhJTIyJTNBJTdCJTdEJTJDJTIybm9kZXMlMjIlM0ElNUIlN0IlMjJvYmplY3QlMjIlM0ElMjJ0ZXh0JTIyJTJDJTIybGVhdmVzJTIyJTNBJTVCJTdCJTIyb2JqZWN0JTIyJTNBJTIybGVhZiUyMiUyQyUyMnRleHQlMjIlM0ElMjJTcHJpbmclMjBCb290JTIwMi54JUU5JTg1JThEJUU3JUJEJUFFJUU0JUJDJTk4JUU1JThDJTk2JUUzJTgwJTgxJUU4JTg3JUFBJUU1JThBJUE4JUU4JUEzJTg1JUU5JTg1JThEJUUzJTgwJTgxJUU2JUE4JUExJUU2JTlEJUJGJUU0JUJEJUJGJUU3JTk0JUE4JUUzJTgwJTgxJUU3JTk0JTlGJUU1JTkxJUJEJUU1JTkxJUE4JUU2JTlDJTlGJUUzJTgwJTgxJUU1JUI1JThDJUU1JTg1JUE1JUU1JUJDJThGJUU1JUFFJUI5JUU1JTk5JUE4JUUzJTgwJTgxJUU1JTg1JUE4JUU1JUIxJTgwJUU1JUJDJTgyJUU1JUI4JUI4JUU1JUE0JTg0JUU3JTkwJTg2JUUzJTgwJTgxJUU1JTg1JUE4JUU1JUIxJTgwJUU2JTk3JUE1JUU1JUJGJTk3JUU3JUFFJUExJUU3JTkwJTg2JUUzJTgwJTgxJUU1JTg4JTg2JUU1JUI4JTgzJUU1JUJDJThGJUU2JTk2JTg3JUU0JUJCJUI2JUU3JUIzJUJCJUU3JUJCJTlGJUU3JUFEJTg5JUU3JTlGJUE1JUU4JUFGJTg2JUU5JTlCJTg2JUU1JTkwJTg4JTIyJTJDJTIybWFya3MlMjIlM0ElNUIlNUQlN0QlNUQlN0QlNUQlN0QlNUQlN0Q="><span data-key="413">Spring Boot 2.x配置优化、自动装配、模板使用、生命周期、嵌入式容器、全局异常处理、全局日志管理、分布式文件系统等知识集合</span></div> <div class="line" data-key="414" data-slate-fragment="JTdCJTIyb2JqZWN0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JUJDJThGJUU1JUFFJUI5JUU1JTk5JUE4JUUzJTgwJTgxJUU1JTg1JUE4JUU1JUIxJTgwJUU1JUJDJTgyJUU1JUI4JUI4JUU1JUE0JTg0JUU3JTkwJTg2JUUzJTgwJTgxJUU1JTg1JUE4JUU1JUIxJTgwJUU2JTk3JUE1JUU1JUJGJTk3JUU3JUFFJUExJUU3JTkwJTg2JUUzJTgwJTgxJUU1JTg4JTg2JUU1JUI4JTgzJUU1JUJDJThGJUU2JTk2JTg3JUU0JUJCJUI2JUU3JUIzJUJCJUU3JUJCJTlGJUU3JUFEJTg5JUU3JTlGJUE1JUU4JUFGJTg2JUU5JTlCJTg2JUU1JTkwJTg4JTIyJTJDJTIybWFya3MlMjIlM0ElNUIlNUQlN0QlNUQlN0QlNUQlN0QlNUQlN0Q="> </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="JTdC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QSUyMiolMjAlMjAlMjAlRTglQUUlQTklRTYlODIlQTglRTclOTQlQTglRTYlOUMlODAlRTUlQjAlOTElRTclOUElODQlRTYlOTclQjYlRTklOTclQjQlRTUlQUQlQTYlRTUlODglQjAlRTYlOUMlODAlRTUlQTQlOUElRTclOUElODQlRTclOUYlQTUlRTglQUYlODYlMjIlMkMlMjJtYXJrcyUyMiUzQSU1QiU1RCU3RCU1RCU3RCU1RCU3RCUyQyU3QiUyMm9iamVjdCUyMiUzQSUyMmJsb2NrJTIyJTJDJTIydHlwZSUyMiUzQSUyMmxpbmUlMjIlMkMlMjJkYXRhJTIyJTNBJTdCJTdEJTJDJTIybm9kZXMlMjIlM0ElNUIlN0IlMjJvYmplY3QlMjIlM0ElMjJ0ZXh0JTIyJTJDJTIybGVhdmVzJTIyJTNBJTVCJTdCJTIyb2JqZWN0JTIyJTNBJTIybGVhZiUyMiUyQyUyMnRleHQlMjIlM0ElMjIqJTIwJTIwJTIwJUU3JTk0JUIxJUU2JUI1JTg1JUU1JTg1JUE1JUU2JUI3JUIxJUVGJUJDJThDJUU2JTk3JUEyJUU1JThDJTg1JUU1JTkwJUFCU3ByaW5nJUU3JTlBJTg0JUU1JTlGJUJBJUU3JUExJTgwJUU2JUIzJUE4JUU4JUE3JUEzJUU3JUFEJTg5JUU1JTg1JUE1JUU5JTk3JUE4JUU3JTlGJUE1JUU4JUFGJTg2JUUzJTgwJTgxJUU0JUI5JTlGJUU0JUJDJTlBJUU1JThDJTg1JUU1JTkwJUFCJUU1JTg4JTg2JUU1JUI4JTgzJUU1JUJDJThGJUU0JUJBJThCJUU1JThBJUExJUU3JTlBJTg0JUU2JUI3JUIxJUU1JTg1JUE1JUU1JTg2JTg1JUU1JUFFJUI5JTIyJTJDJTIybWFya3MlMjIlM0ElNUIlNUQlN0QlNUQlN0QlNUQlN0QlNUQlN0Q="><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官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值