Minio原生二进制安装
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"
- 设置服务自启动 在/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