Minio下载
----下载二进制安装包建议下载到/usr/local/bin/ 目录下,可全局访问
[root@localhost /]# wget https://dl.minio.io/server/minio/release/linux-amd64/minio
----赋予可执行权限
[root@localhost /]#chmod +x minio
---创建多级数据存储文件及
[root@localhost /]#mkdir -p /data/miniodata
Minio启动
---关闭防火墙
[root@localhost ~]# systemctl stop firewalld
---前台启动,退出终端后服务停止
[root@localhost /]#./minio server /data/minidata
---后台启动
[root@localhost /]# nohup ./minio server /data/miniodata/ --console-address ":50000" > /data/miniodata//minio.log 2>&1 &
Minio设置成系统服务
---创建
[root@localhost /]# vi /etc/systemd/system/minio.service
---增加以下内容
[Unit]
Description=Minio Service
[Service]
Environment="MINIO_ROOT_USER=minioadmin"
Environment="MINIO_ROOT_PASSWORD=minioadmin"
ExecStart=/minio server /data/miniodata --console-address ":50000"
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
StandardOutput=/data/miniodata/logs/minio.log
PrivateTmp=true
[Install]
WantedBy=multi-user.target
---重新加载
[root@localhost /]# enable minio.service
[root@localhost /]#systemctl daemon-reload
---启动minio服务
[root@localhost /]#systemctl start minio
---查看minio服务状态
[root@localhost /]#systemctl status minio.service
---停止minio服务
[root@localhost /]#systemctl stop minio
---重启操作系统
[root@localhost /]#reboot
标签:minio,单机,data,---,systemctl,linux,root,localhost From: https://www.cnblogs.com/tangjun-2021/p/17181330.html