当前位置:网站首页>minio单节点部署 minio分布式部署 傻瓜式部署过程 (一)
minio单节点部署 minio分布式部署 傻瓜式部署过程 (一)
2022-06-23 05:01:00 【士多碧莉】
现有一需求需要接入存储系统,经过初步的调研,决定选择minio,下面是minio的简单部署过程,亲测没问题。
一、准备工作:安装docker,学习docker相关知识,学习磁盘挂载
S1:安装依赖工具包
yum install -y yum-utils S2:设置远程仓库
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repoS3:安装docker
yum install docker-ce -yS4:启动docker以及加入开机自启
service docker start #启动docker
chkconfig docker on #加入开机启动S5:查看docker版本
docker version下面提供懒人安装,直接执行sh文件即可:
# install_docker.sh
yum install -y yum-utils
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install docker-ce -y
service docker start
chkconfig docker on
docker version二、单节点部署minio
2.1 单节点单磁盘部署
单节点部署又分为单磁盘、多磁盘部署,这里不推荐使用单磁盘,因为minio的纠删码算法要求至少4块磁盘,否则应用不了纠删码,保证不了数据安全以及高可用。
| MINIO_ACCESS_KEY | 登录账号 |
| MINIO_SECRET_KE | 登录密码 |
单磁盘部署命令:
docker run -it -d -p 9000:9000 --name minio1 \
-e "MINIO_ACCESS_KEY=minio" \
-e "MINIO_SECRET_KEY=minio123" \
-v /opt/data1:/data1 \
-v /opt/config:/root/.minio
minio/minio server /data1
直接使用:宿主机ip:9000即可访问
需要注意的是挂载的目录(当磁盘使)必须为空。
2.2 单节点多磁盘部署
单节点多次盘的情况下,一半的磁盘损坏仍然可以无损读取,但是不能上传,至少一半+1的磁盘正常才可以上传。
多磁盘部署命令:
docker run -it -d -p 9000:9000 --name minio1 \
-e "MINIO_ACCESS_KEY=minio" \
-e "MINIO_SECRET_KEY=minio123" \
-v /opt/data1:/data1 \
-v /opt/data2:/data2 \
-v /opt/data3:/data3 \
-v /opt/data4:/data4 \
-v /opt/config:/root/.minio
minio/minio server /data1 /data2 /data3 /data4多节点部署发布于 minio单节点部署 minio分布式部署 傻瓜式部署过程 (二)中
边栏推荐
- 射频基础理论(dB)
- Perfect squares for leetcode topic analysis
- mongodb项目中可能出现的坑
- Pat class B 1025 reverse linked list
- 如何为 Arduino IDE 安装添加库
- Day_ 07 smart communication health project FreeMarker
- [database backup] complete the backup of MySQL database through scheduled tasks
- Day_ 11 smart communication health project - graphic report and poi Report
- Learning Tai Chi Maker - esp8226 (11) distribution network with WiFi manager Library
- Pyinstaller packaging pyttsx3 error
猜你喜欢

Layer 2技术方案进展情况

Design scheme of Small PLC based on t5l1

11、 Realization of textile fabric off shelf function

mongodb 4.x绑定多个ip启动报错

金融科技之高效办公(一):自动生成信托计划说明书
![[cocos2d-x] screenshot sharing function](/img/fc/e3d7e5ba164638e2c48bc4a52a7f13.png)
[cocos2d-x] screenshot sharing function
Link of Baidu URL Parameters? Recherche sur le chiffrement et le décryptage des paramètres d'URL (exemple de Code)

Day_ 01 smart communication health project - project overview and environmental construction

原址 交换

Day_05 传智健康项目-预约管理-预约设置
随机推荐
Redis sentry
Redis 哨兵
Layer 2技术方案进展情况
Day_04 傳智健康項目-預約管理-套餐管理
【Leetcode】431. Encode N-ary Tree to Binary Tree(困难)
【Vivado那些事儿】XilinxCEDStore介绍
Leetcode topic resolution single number II
[cocos2d-x] erasable layer:erasablelayer
Day_ 08 smart health project - mobile terminal development - physical examination appointment
微软面试题:打印折纸的折痕
Basic RF theory (DB)
[DaVinci developer topic] -42- how to generate template and header files of APP SWC
百度URL参数之LINK?URL参数加密解密研究(代码实例)
sklearn sklearn中classification_report&精确度/召回率/F1值
坐标 转化
JVM原理简介
金融科技之高效办公(一):自动生成信托计划说明书
图解 Google V8 # 18 :异步编程(一):V8是如何实现微任务的?
Palindrome number for leetcode topic analysis
Long substring without repeating characters for leetcode topic resolution