-
MINIO简介
-
MINIO目录
mkdir -p /opt/minio/data && cd /opt/minio
-
MINIO下载
wget https://dl.minio.org.cn/server/minio/release/linux-amd64/minio
-
MINIO授权
chmod +x minio
-
MINIO端口
firewall-cmd --zone=public --add-port=7171/tcp --permanent && firewall-cmd --reload
-
常用命令
#---------------------------------------------------------- 启动:nohup /opt/minio/minio server --console-address ":7171" /opt/minio/data > /opt/minio/minio.log & 查看:ps -ef | grep -i minio 关闭:pkill -f "minio" #---------------------------------------------------------- 注意:启动后光标复原Ctrl+C、7171为访问端口、/opt/minio/data为数据目录、/opt/minio/minio.log为日志文件 #----------------------------------------------------------
-
开机启动
#---------------------------------------------------------- sudo tee /usr/bin/minio.sh <<-'EOF' #! /bin/bash nohup /opt/minio/minio server --console-address ":7171" /opt/minio/data > /opt/minio/minio.log EOF chmod +x /usr/bin/minio.sh #---------------------------------------------------------- sudo tee /etc/systemd/system/minio.service <<-'EOF' [Unit] Description=minio After=syslog.target network.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/minio.sh [Install] WantedBy=multi-user.target EOF #---------------------------------------------------------- systemctl enable minio #---------------------------------------------------------- # 启动minio systemctl start minio # 停止minio systemctl stop minio # 重启minio systemctl restart minio # 查看minio状态 systemctl status minio
-
访问路径
http://your-server-ip:7171 注意:管理员账号和密码在日志文件中/opt/minio/minio.log
Linux安装MINIO
童心同萌2023-10-20 0:06
相关推荐