安装wget
$ yum install -y wget
下载,成功后是一个文件,须添加可执行权限
$ wget https://dl.minio.io/server/minio/release/linux-amd64/minio
添加执行权限
$ chmod +x minio
创建数据存放目录
$ mkdir -p /usr/local/minio/data
命令行启动minio
$ ./minio server /usr/local/minio/data
显示
Endpoint: http://192.168.8.135:9000 http://127.0.0.1:9000
AccessKey: SI8S37LASKV7RE9ZZQ3J(登录名)
SecretKey: CpDQ3Zy7P9UeUzMUXmd1rbj4A+qt13cCfAxoQ5dU (登录密码)
Browser Access:
http://192.168.8.135:9000 http://127.0.0.1:9000
Command-line Access: https://docs.min.io/docs/minio-client-quickstart-guide
$ mc config host add myminio http://192.168.8.135:9000 SI8S37LASKV7RE9ZZQ3J CpDQ3Zy7P9UeUzMUXmd1rbj4A+qt13cCfAxoQ5dU
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
默认端口号9000
登录地址:ip:9000/minio/login
账户密码如上显示
将minio在后台运行
$ nohup /usr/local/mini/minio server /usr/local/minio/data > /usr/local/minio/data/minio.log 2>&1 &
修改登录名与密码
#登录名(Access key length should be between minimum 3 characters in length.)
$ export MINIO_ACCESS_KEY=minio
#登录密码(Secret key should be in between 8 and 40 characters)
$ export MINIO_SECRET_KEY=12345678
#自定义端口号
$ ./minio server --address IP:PORT /usr/local/minio/data
网友评论