minio 集群部署

4节点的miniio集群部署

192.168.100.1、192.168.100.2、192.168.100.3、192.168.100.4

监听9000端口

启动脚本

#!/bin/bash
export MINIO_ACCESS_KEY=xxx
export MINIO_SECRET_KEY=xxx
/usr/local/minio/bin/minio server \
--address :9000 http://192.168.100.1/db/minio1 http://192.168.100.2/db/minio1 http://192.168.100.3/db/minio1 http://192.168.100.4/db/minio1 \

systemd 方式启动

cat minio.service 文件内容

[Unit]
Description=Minio service
Documentation=https://docs.minio.io/

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

Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

cp minio.service /usr/lib/systemd/system/minio.service 

chmod +x  /usr/lib/systemd/system/minio.service

systemctl daemon-reload

systemctl start minio

systemctl enable minio

你可能感兴趣的:(minio)