当前位置:网站首页>Minio installation, deployment and simple use
Minio installation, deployment and simple use
2022-07-19 05:55:00 【One, two, three】
minio Installation, deployment and simple use
List of articles
Minio follow The minimalist Design concept of , From installation and deployment to operation, it embodies the concept of minimalism . Object storage , Take the object as the operation unit .
1 Stand alone installation
Through the following steps, you can install and run a single machine minio
Download from official website minio Binary :
Download addressnewly build minio The installation directory , Execute the following command :
mkdir -p /home/minio/dataUpload the binary file to the installation directory , perform :
chmod +x minio export MINIO_ACCESS_KEY=minioadmin export MINIO_SECRET_KEY=minioadmin ./minio server /home/data
2 minio Browser interface operation
Install and start through the above simple steps minio After service ,minio Enabled web Client operation page , You can add folders and upload files through the interface , Can also pass minio Officially provided client , Carry out relevant operations through commands .
Sign in minio Of web page
Interface login access_key and secret_key Respectively minioadmin、minioadmin, The service port is 9000, The service address is as follows :http://10.45.156.156:9000/After login, the interface is as follows :

Click on the + Button , Can create bucket And upload files , As shown in the above figure, a test Folder and uploaded image files .
The interface can delete files 、 download 、 Preview and share actions , Configurable bucket access policy , If you need a web page, you can visit the address of the uploaded file , You need to set the following permissions :

3 minio Cluster installation
MinIO Support single point 、 Deploy by means of distributed clusters .MinIO Distributed cluster refers to the deployment of multiple server nodes MinIO service , And build it into a distributed storage cluster , Provide standards to the outside world S3 Interface for unified access .
3.1 minio Cluster deployment mode
Cluster deployment methods are divided into the following :
Deploy directly without grouping , Cluster expansion is not supported , It is generally used in a deployment scenario
according to server pools How to deploy , Support group expansion
Here's the second one , Support group capacity expansion , The first is less used , And can't get through minio Official Expansion .
3.2 minio Cluster deployment steps
- Environmental statement ( Two node , Every node 4 A path )
| Server nodes | Data directory | Running directory |
|---|---|---|
| 10.45.154.179 | /nas/data1/minio/data{1…4} | /home/minio/run |
| 10.45.154.180 | /nas/data1/minio/data{1…4} | /home/minio/run |
- download minio Binary , And upload it to the running directory of two nodes
Download address
mkdir -p /home/minio/run # Create directory
wget http://dl.minio.org.cn/server/minio/release/darwin-amd64/minio # Download run file
scp minio [email protected]:/home/minio/run/ # Copy to another node
- Create data directory and configuration directory , Create two nodes respectively
mkdir -p /nas/data1/minio/{
data1,data2,data3,data4}
mkdir -p /etc/minio
- Cluster startup file creation , Both nodes are created
Use the default port 9000,access_key and secret_key Set to minioadmin、minioadmin
vi vim /home/minio/run/start.sh # Create startup file
The contents of the document are as follows
#!/bin/bash
export MINIO_ACCESS_KEY=minioadmin
export MINIO_SECRET_KEY=minioadmin
/home/minio/run/minio server --config-dir /etc/minio \
http://10.45.154.{179...180}/nas/data1/minio/data{1...4}
- establish minio system service , Both nodes are created
vim /usr/lib/systemd/system/minio.service
The contents of the document are as follows
[Unit]
Description=Minio service
Documentation=https://docs.minio.io/
[Service]
WorkingDirectory=/home/minio/run/
ExecStart=/home/minio/run/start.sh
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
- Start cluster ,l The two nodes perform the same operation
Modify boot file permissions
chmod +x /usr/lib/systemd/system/minio.service
chmod +x /home/minio/run/minio
chmod +x /home/minio/run/minio-run.sh
Start cluster
systemctl daemon-reload # Reload service
systemctl start minio # Start the service
systemctl enable minio # Join auto start
- Through any node of ip Can be operated , It can be operated through the interface or interface , If you want balanced access , It can be done by nginx Load balancing
Access through the following connection minio Of web Interfacehttp://10.45.154.179:9000/
Can also pass 180 Node accesshttp://10.45.154.180:9000/
3.3 matters needing attention
- Cluster deployment , The corresponding data directory must be a physical disk , Startup time minio Go back and format the hard disk , It cannot be a system disk , Otherwise, the following error will be prompted
API: SYSTEM()
Time: 16:22:26 CST 11/03/2021
Error: Marking http://10.45.154.179:9000/minio/storage/nas/data1/minio/data4/v37 temporary offline; caused by Post "http://10.45.154.179:9000/minio/storage/nas/data1/minio/data4/v37/readall?disk-id=&file-path=format.json&volume=.minio.sys": dial tcp 10.45.154.179:9000: connect: connection refused (*fmt.wrapError)
6: internal/rest/client.go:147:rest.(*Client).Call()
5: cmd/storage-rest-client.go:151:cmd.(*storageRESTClient).call()
4: cmd/storage-rest-client.go:523:cmd.(*storageRESTClient).ReadAll()
3: cmd/format-erasure.go:406:cmd.loadFormatErasure()
2: cmd/format-erasure.go:326:cmd.loadFormatErasureAll.func1()
1: internal/sync/errgroup/errgroup.go:123:errgroup.(*Group).Go.func1()
Pay attention to installing the system , Don't make the data disk raid,minio Through error correcting code mechanism , Ensure data storage security
Distributed Minio All nodes in need to have the same access Key and secret Secret key , So that these nodes can establish connections . To achieve this , You need to be doing minio server Before the command , First the access Key and secret Secret key export Become an environmental variable
Distributed Minio The time difference between nodes in cannot exceed 3 second , You can use NTP To make sure the time is the same
边栏推荐
- BeatBox
- 数字信号隔离模块 ADUM1401ARWZ 亚德诺 库存现货
- [introduction to speech recognition] basic concepts and framework
- 基于 VITA57.1 标准的单通道 6GSPS 12 位AD采集,单通道 6GSPS 16 位 DA(AD9176)输出 子卡
- Record: yolov5 model pruning lightweight
- 什么是tSD/qSD?CS创世 SD NAND到底是什么?
- HM代理商多节锂电充电IC
- Seq2seq (Chinese English translation) attention
- HM9922开关降压型 LED恒流驱动器IC
- Review of software process and management (VII)
猜你喜欢

自監督學習概述

vscode 配置golang开发环境

Deep clustering correlation (three articles)

热电阻pt100 CU50隔离转换器转4-20ma模拟量输出温度变送器0-10V

BEVFormer: Learning Bird’s-Eye-View Representation from Multi-Camera Images via Spatiotemporal Trans

CS品牌SDNAND和STM32MCU成功合作资料

LTH7五脚芯片的完整方案图FS4054充电电路原理

Run yolov5 process record based on mindspire

CS品牌SDNAND在颜色检测仪行业中的应用案例

golang 多项目工作区搭建
随机推荐
MCU的最佳存储方案CS创世 SD NAND
为什么方案商“钟情”选择CS创世SD NAND
Emotional classification based on Bert
什么是tSD/qSD?CS创世 SD NAND到底是什么?
8种视觉Transformer整理(上)
A Survey of Robust LiDAR-based 3D Object Detection Methods for Autonomous Driving(激光雷达3D目标检测方法)论文笔记
CV learning notes [1]: transforms
Xinlinx zynq7010国产替代 FMQL10S400 全国产化 ARM 核心板+扩展板
Dlib library and Dat file address
Pytorch learning notes [2]: learning mechanism
MySQL service is starting MySQL service failed to start
如何用NumPy读取和保存点云数据
4-20ma转4-20ma 0-5v转0-5v 模拟信号隔离变送器
FMC子卡:4 路 SFP+万兆光纤网络 FMC 子卡
热电阻pt100 CU50隔离转换器转4-20ma模拟量输出温度变送器0-10V
7种视觉MLP整理(下)
Aperçu de l'apprentissage auto - supervisé
比例阀放大板1A、2A、3A、5A比例阀驱动模块0-10V转0-24V
Composition of wechat applet code
李宏毅机器学习--回归2022.07.13