1. Download SSL certificate
Generate a certificate corresponding to the domain name. The Apache version is currently used.
After downloading, rename the current two files, the private key to private.key and the certificate to public.crt.
minio can only recognize these two names
Find the home directory of linux
echo $HOME
Enter /root/.minio/certs in the current home directory (this directory needs to be entered manually)
2. Configure minio
Server installation apache
sudo yum install httpd
Don’t panic if you get an error, enter this
yum --disableexcludes=all install -y httpd
start https
sudo systemctl enable httpd.service
Restart minio and find the process number of minio
ps -ef | grep minio
Get the process number and end it
kill -9 进程号
3. Set up minio in the background
Create a new file minioRun.sh
vim minioRun.sh
Enter the following
#!/bin/bash
# 设置登录名
export MINIO_ROOT_USER=admin
# 设置登录密码
export MINIO_ROOT_PASSWORD=password
# nohup启动服务 指定文件存放路径 /root/data 还有设置日志文件路径 /root/minio/log
nohup ./minio server --address :9002 --console-address :9001 /home/data/minio > /home/logs/minio/minio.log 2>&1 &
Grant execution permissions to this sh script
chmod +x minioRun.sh
run script
./minioRun.sh
access
Later, we will talk about the issue of uploading errors when minio turns on https! ! !
Article link: https://blog.csdn.net/weixin_53799443/article/details/129442953