@zhongdao
2020-07-11T09:50:47.000000Z
字数 1167
阅读 1980
未分类
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
./minio server /data
Install from Source
Source installation is only intended for developers and advanced users. If you do not have a working Golang environment, please follow How to install Golang. Minimum version required is go1.13
ufw allow 9000
mc config host add --api --lookup
./mc config host add myminio http://47.244.174.192:9000 minioadmin minioadmin
查看
/home/minio/mc ls myminio/ok1
复制文件
/home/minio/mc cp README myminio/ok1/
/home/minio/mc cp myminio/ok1/7steps.png .
查看所有文件,包括所有桶的
/home/minio/mc ls myminio -r
minio.prod.365noc.com:13680 用于指向 生产环境的minio 10.1.31.136:8080
minio.prod.365noc.com:13490 用于指向 生产环境的minio集群的任意一个节点 10.1.31.134:9000
minio.dev.365noc.com:22280 用于指向 生产环境的minio 10.1.31.222:8080
minio.dev.365noc.com:9007 用于指向 生产环境的minio集群的任意一个节点 10.1.31.72:9000
上传
curl -F "file=@tmp.go" -X POST -F "bucket=testbucket" http://10.1.31.222:8080/minio/upload
下载
curl -X GET http://10.1.31.222:8080/minio/download?bucket=testbucket&objectName=ctapi.log
http://10.1.31.222:8080/minio/delete?bucket=testbucket&objectName=ctapi.log
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types