minio集群安装

 

Minio分布式集群搭建部署

https://www.cnblogs.com/lvzhenjiang/p/14943939.html

minio搭建与监控

https://www.cnblogs.com/changbo/p/14993991.html



$ vim /data/minio/run/run.sh
#!/bin/bash
export MINIO_ACCESS_KEY=Minio
export MINIO_SECRET_KEY=Test1234!

/data/minio/run/minio server --config-dir /etc/minio \
http://10.2.2.149/data/minio/data \
http://10.2.2.192/data/minio/data \
http://10.2.2.199/data/minio/data \
http://10.2.2.210/data/minio/data \

$ vim /usr/lib/systemd/system/minio.service
[Unit]
Description=Minio service
Documentation=https://docs.minio.io/

[Service]
WorkingDirectory=/data/minio/run/
ExecStart=/data/minio/run/run.sh

Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

scp  -P 36000 -r /data/minio/run root@10.2.2.210:/data/minio
scp  -P 36000  -r /usr/lib/systemd/system/minio.service root@10.2.2.210:/usr/lib/systemd/system/minio.service


systemctl daemon-reload
systemctl enable minio && systemctl start minio


upstream minio {
        server 10.2.2.149:9000;
        server 10.2.2.192:9000;
        server 10.2.2.199:9000;
        server 10.2.2.210:9000;
}
server {
        listen 19000;
        server_name 10.2.2.210;


        location / {
                proxy_pass http://minio;
                client_max_body_size 1000m;
                proxy_set_header Host $http_host;
        }
}

http://10.2.2.210:19000/dcim/demo/123.png

上一篇:Task 使用详细[基础操作,异步原则,异步函数,异步模式]


下一篇:java线程(面试题)