1,下载
去官网下载安装包。不大,49M左右。网址:https://min.io/download#/linux
或者使用命令行下载 :
wget https://dl.min.io/server/minio/release/linux-amd64/minio
2,运行
chmod +x minio
#启动
./minio server /usr/software/minio/data
或者
MINIO_ACCESS_KEY=myminioadmin MINIO_SECRET_KEY=myminioadmin ./minio server /usr/software/minio/data
或者
MINIO_ACCESS_KEY=myminioadmin MINIO_SECRET_KEY=myminioadmin ./minio server --config-dir /usr/software/minio/config /usr/software/minio/data
3、后台启动
#后台运行
nohup ./minio server /usr/software/minio/data > /usr/software/minio/minio.log 2>&1 &#
#或者
MINIO_ACCESS_KEY=myminioadmin MINIO_SECRET_KEY=myminioadmin nohup ./minio server --config-dir /usr/software/minio/config /usr/software/minio/data> /usr/software/minio/minio.log 2>&1 &#
4、启动后显示如下,
[root@ww minio]# MINIO_ACCESS_KEY=myminioadmin MINIO_SECRET_KEY=myminioadmin ./minio server --config-dir /usr/software/minio/config /usr/software/minio/data
Attempting encryption of all config, IAM users and policies on MinIO backend
Endpoint: http://192.168.51.80:9000http://127.0.0.1:9000
AccessKey: myminioadmin
SecretKey: myminioadmin
Browser Access: http://192.168.51.80:9000http://127.0.0.1:9000
Command-line Access: https://docs.min.io/docs/minio-client-quickstart-guide $ mc alias set myminio http://192.168.51.80:9000 myminioadmin myminioadmin
Object API (Amazon S3 compatible):
Go: https://docs.min.io/docs/golang-client-quickstart-guide
Java: https://docs.min.io/docs/java-client-quickstart-guide
Python: https://docs.min.io/docs/python-client-quickstart-guide
JavaScript: https://docs.min.io/docs/javascript-client-quickstart-guide
.NET: https://docs.min.io/docs/dotnet-client-quickstart-guide
测试:
在浏览器输入:http://192.168.51.80:9000
在输入控制打印的默认的AccessKey和SecretKey:
AccessKey: minioadmin
SecretKey: minioadmin
点击登录
进入系统后,我们先要点击右下角的“+”按钮,创建一个文件桶(输入名称后,回车即可),在上传文件到这个文件桶中。Create bucket(创建文件桶)、Upload file(上传文件)。
上传成功