远程安装:dnf install https://dl.min.io/server/minio/release/linux-amd64/minio-20211210230339.0.0.x86_64.rpm
启动测试:MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=password minio server /mnt/data --console-address ":9001"
创建默认环境:
cat <<EOT >> /etc/default/minio
# Remote volumes to be used for MinIO server.
MINIO_VOLUMES="/mnt/data/minio"
# Use if you want to run MinIO on a custom port.
MINIO_OPTS="--address :9000 --console-address :9001"
# Root user for the server.
MINIO_ROOT_USER=admin
# Root secret for the server.
MINIO_ROOT_PASSWORD=自定义密码,最少八位
EOT
进入目录:cd /etc/systemd/system/
下载自启文件:curl -O https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/distributed/minio.service
配置:vim minio.service
User=root
Group=root
加载配置:systemctl daemon-reload
设置开机自启:systemctl enable minio.service
启动:systemctl start minio