minio的安装

下载minio

1
wget https://dl.minio.io/server/minio/release/linux-amd64/minio

配置system启动文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# cat /usr/lib/systemd/system/minio.service 
[Unit]
Description=Minio service
Documentation=https://docs.minio.io/

[Service]
WorkingDirectory=/usr/local/minio/
ExecStart=/usr/local/minio/run.sh

Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
# cat /usr/local/minio/run.sh
#!/bin/bash
export MINIO_ACCESS_KEY=admin
export MINIO_SECRET_KEY=xxxxxxx
# 单个目录
/usr/local/minio/minio server --address 0.0.0.0:9005 /data/minio
# 多个目录,必须大于等于4个
#/usr/local/minio/minio server --address 0.0.0.0:9005 /data/minio/1 /data/minio/2 /data/minio/3 /data/minio/4