Rocky Linux 8 安装minio
0、创建minio-user用户并且赋予root权限
(1)创建用户
useradd minio-user
passwd minio-user
(2)赋予root命令权限
#修改 /etc/sudoers 文件,找到下面一行,在root下面添加一行,如下所示:
#修改完成之后按esc推出编辑模式,输入 : wq!(强制保存退出)
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
Lucy ALL=(ALL) ALL
1、关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
2、安装minio
#如果没有wget,由于Rocky Linux是基于CentOS8的,因此直接拿阿里云CentOS8的资源镜像源即可
yum install -y wget
wget -O /etc/yum.repos.d/Rocky-BaseOS.repo http://mirrors.aliyun.com/repo/Centos-8.repo
yum clean all
yum makecache
(1)下载minio
wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/local/bin/minio
sudo chmod +x /usr/local/bin/minio
sudo restorecon -v /usr/local/bin/minio
(2)查看minio版本
minio --version
minio version RELEASE.2022-04-16T04-26-02Z
3、配置minio
#创建用户运行minio
sudo useradd -r minio-user -s /sbin/nologin
#修改minio文件库所属用户
sudo chown minio-user:minio-user /usr/local/bin/minio
#创建保存文件夹
sudo mkdir /etc/minio
sudo chown minio-user:minio-user /etc/minio
#创建挂载文件夹
mkdir /mnt/data
sudo chown minio-user:minio-user /mnt/data
#创建默认环境配置
vi /etc/default/minio
#粘贴以下内容:
MINIO_VOLUMES="/mnt/data"
MINIO_OPTS="-C /etc/minio --address :9000 --console-address :9001"
MINIO_ROOT_USER="你自己的登陆用户名"
MINIO_ROOT_PASSWORD="你自己的登陆密码"
4、设置minio服务
wget https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service -O /etc/systemd/system/minio.service
sudo restorecon -v /etc/systemd/system/minio.service
#重新加载daemon
sudo systemctl daemon-reload
#设置minio开机启动
sudo systemctl enable minio
#启动minio服务
sudo systemctl start minio
#查看minio运行状态
sudo systemctl status minio
#如果看到active代表启动成功,网址输入http://your_server_ip:9001查看minio控制台
5、参考网址:
https://www.vultr.com/zh/docs/how-to-set-up-a-minio-object-storage-server-on-rocky-linux/?__cf_chl_tk=18K0FfiYRRg544H_zE50YMpIFT4DLusLLFmBDMjmkno-1666603340-0-gaNycGzNDSU
6、base64
5Li65LqGMTAyNOeoi+W6j+WRmOWbvuagh+WGmeeahOWNmuWuou+8jOavlOi+g+awtOi9u+WWtw==