Minio安装

2020-09-30  本文已影响0人  诺之林

服务端

docker run --name minio-test -p 9000:9000 -e MINIO_ACCESS_KEY=miniokey -e MINIO_SECRET_KEY=miniosecret -d minio/minio server ./data
wget https://dl.min.io/server/minio/release/linux-amd64/minio

chmod +x minio

export MINIO_ACCESS_KEY=miniokey
export MINIO_SECRET_KEY=miniosecret
mkdir data

./minio server ./data

代理

server {
    listen 80;
    server_name minio.nuozhilin.site;

    location / {
        proxy_set_header Host $http_host;
        proxy_pass http://localhost:9000;
    }
}

客户端

brew install minio/stable/mc

mc config host add nuozhilin http://minio.nuozhilin.site miniokey miniosecret --api s3v4

mc ls nuozhilin

mc ls nuozhilin/test

mc cp nuozhilin/test/antd.png ~/Downloads

mc cp ~/Downloads/antd.png nuozhilin/test/
上一篇下一篇

猜你喜欢

热点阅读