MinIO安装部署(docker方式)

1. 安装docker 基础环境(不在复述)

2. 安装MinIO

MinIO Docker 安装命令

9000为客户端连接端口,9001为Web管理端口
登陆地址为 http://{部署机器IP}:9001

docker run -p 9000:9000 -p 9001:9001 --name minio -d --restart=always -e "MINIO_ACCESS_KEY=登陆用户名" -e "MINIO_SECRET_KEY=密码" -v /home/docker/minio/data:/data -v /home/docker/minio/config:/root/.minio -v /etc/localtime:/etc/localtime minio/minio:RELEASE.2021-07-12T02-44-53Z server /data --console-address ":9001"

MinIO 设置存储桶为public

# 通过客户端配置服务
# 启动本地MinIO服务
.\minio.exe server E:\Data
# 通过mc客户端配置本地MinIO服务
.\mc config host add miniolocal http://127.0.0.1:9000 minioadmin minioadmin --api S3v4
# 通过mc客户端配置115、119服务器MinIO服务
.\mc config host add minio119 http://10.247.144.115:9000 minioadmin RPAminio@zkj --api S3v4
.\mc config host add minio119 http://10.247.144.119:9000 minioadmin RPAminio@zkj --api S3v4

# 通过mc客户端将115、119服务器相关桶设置为公用,保证图片等静态文件可直接访问
.\mc policy set public minio115/rpaskill
.\mc policy set public minio115/rpaskillpic
.\mc policy set public minio115/rpaoss
.\mc policy set public minio115/mrpaoss
.\mc policy set public minio115/test
.\mc policy set public minio115/interlocution

.\mc policy set public minio119/rpaskill
.\mc policy set public minio119/rpaskillpic
.\mc policy set public minio119/rpaoss
.\mc policy set public minio119/mrpaoss
.\mc policy set public minio119/test
.\mc policy set public minio119/interlocution

3. 创建桶

image.png

你可能感兴趣的:(MinIO安装部署(docker方式))