安裝wget
$ yum install -y wget
下載,成功后是一個文件,須添加可執(zhí)行權(quán)限
$ wget https://dl.minio.io/server/minio/release/linux-amd64/minio
添加執(zhí)行權(quán)限
$ chmod +x minio
創(chuàng)建數(shù)據(jù)存放目錄
$ 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
默認(rèn)端口號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