服务端
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/
网友评论