Skip to content

Minio原生二进制安装

  1. 访问官网下载 https://min.io/open-source/download?platform=linux
shell
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=password ./minio server /mnt/data --console-address ":9001"
  1. 设置服务自启动 在/etc/systemd/system/目录下创建minio.service文件:
shell
[Unit]
Description=MinIO Server
After=network.target

[Service]
ExecStart=/usr/minio/minio server /data/miniodata --console-address=:9001 --address=:9000
Environment="MINIO_ROOT_USER=minioadmin"
Environment="MINIO_ROOT_PASSWORD=minioadmin"

[Install]
WantedBy=multi-user.target

重新注册一遍服务。

shell
systemctl daemon-reload

服务设置为开机自启动

shell
systemctl enable minio

可以执行下述命令查看服务开机自启动是否设置成功:

shell
systemctl list-unit-files --type=service --state=enabled