记一次在线安装minIo
‘#’ 代表使用root用户登录
[root@shenhua-mcsvc1-sunxianggang testusr]# cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)
[root@localhost testusr]################### 下载二进制文件,启动服务##################
[root@localhost testusr]# wget https://dl.min.io/server/minio/release/linux-amd64/minio
[root@localhost testusr]# chmod +x minio
[root@localhost testusr]# mv minio /usr/bin
[root@localhost testusr]#
[root@localhost testusr]################### 手动设置登陆帐号密码: ##################
[root@localhost testusr]#export MINIO_ACCESS_KEY=admin
[root@localhost testusr]#export MINIO_SECRET_KEY=password
[root@localhost testusr]#
[root@localhost testusr]# mkdir -p /data/testusr/minio-file
[root@localhost testusr]# mkdir -p /data/testusr/logs
[root@localhost testusr]# ################## 检查端口占用情况: ##################
[root@localhost testusr]# netstat -lntup|egrep '9000|9001'
[root@localhost testusr]# ################## 启动脚本: ##################
[root@localhost testusr]# minio server /data/testusr/minio-data --address :9000 --console-address :9001 >> /data/testusr/logs/minio.log &
[root@localhost testusr]# netstat -lntup|egrep '9000|9001'
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 32590/minio
tcp6 0 0 :::9000 :::* LISTEN 32590/minio
tcp6 0 0 ::1:9000 :::* LISTEN 32590/minio
tcp6 0 0 :::9001 :::* LISTEN 32590/minio
[root@localhost testusr]# tail -f /data/testusr/logs/minio.log
Copyright: 2015-2023 MinIO, Inc.
License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
Version: RELEASE.2023-02-27T18-10-45Z (go1.19.6 linux/amd64)
Status: 1 Online, 0 Offline.
API: http://127.0.0.1:9000 http://127.0.0.1:9000
Console: http://127.0.0.1:9001 http://127.0.0.1:9001
Documentation: https://min.io/docs/minio/linux/index.html
Warning: The standard parity is set to 0. This can lead to data loss.
minio报错:io.minio.errors.ErrorResponseException: The specified bucket does not exist
登录http://127.0.0.1:9001控制台创建指定名称的 bucket。
参考资料

浙公网安备 33010602011771号