安装minio
服务器信息
ip | 系统 | 配置 | 目录 | 版本 |
---|---|---|---|---|
172.24.32.202 | centos7.7 | 4c16g | /data/minio/data | xxx |
官网推荐docker快速部署,这里源码安装
1、参考地址:
https://github.com/minio/minio
2、创建目录
mkdir -p /data/minio /data/minio/data
3、下载文件
cd /data/minio
wget https://dl.min.io/server/minio/release/linux-amd64/minio
4、赋权
chmod +x minio
5、配置启动文件
cat>>/usr/lib/systemd/system/minio.service<<EOF
[Unit]
Description=minio
After=network.target
[Service]
Type=simple
User=root
ExecStart=/data/minio/minio server /data/minio/data
ExecReload=/bin/kill -HUP
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
6、启动和开机自启动
systemctl start minio
systemctl enable minio
7、查看信息。待改进(日志重定向)
tailf -n 50 /var/log/messages
May 20 21:27:10 localhost minio: Endpoint: http://172.24.32.202:9000 http://127.0.0.1:9000
May 20 21:27:10 localhost minio: Browser Access:
May 20 21:27:10 localhost minio: http://172.24.32.202:9000 http://127.0.0.1:9000
May 20 21:27:10 localhost minio: Object API (Amazon S3 compatible):
May 20 21:27:10 localhost minio: Go: https://docs.min.io/docs/golang-client-quickstart-guide
May 20 21:27:10 localhost minio: Java: https://docs.min.io/docs/java-client-quickstart-guide
May 20 21:27:10 localhost minio: Python: https://docs.min.io/docs/python-client-quickstart-guide
May 20 21:27:10 localhost minio: JavaScript: https://docs.min.io/docs/javascript-client-quickstart-guide
May 20 21:27:10 localhost minio: .NET: https://docs.min.io/docs/dotnet-client-quickstart-guide
May 20 21:27:10 localhost minio: Detected default credentials 'minioadmin:minioadmin', please change the credentials immediately using 'MINIO_ACCESS_KEY' and 'MINIO_SECRET_KEY'
8、客户端的安装
cd /data/minio
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc