Review the previous minio’s own storage setup

The environment

Centos 7.8Copy the code

Install thumbor

#Viewing the Python version
python -v
#Install Python's package management tool PIPYum install epel-release yum install python-devel yum install python-pip PIP install --upgrade PIP ##Installing the Compilation tool
yum install gcc
#Install thumbor
pip install thumbor

#Create a user running thumbor:
groupadd thumbor
useradd -g thumbor -s /sbin/nologin thumbor
#Create thumbor's configuration file
mkdir -p /etc/thumbor
thumbor-config > /etc/thumbor/thumbor.conf
#Create service file
vi /etc/systemd/system/thumbor.service

#Here's what thumbor.service looks like
[Unit]
Description=thumbor
After=network.target

[Service]
ExecStart=/usr/bin/thumbor \
	    --port=8199 \
	    --conf=/etc/thumbor/thumbor.conf
User=thumbor
Restart=on-failure
Type=simple
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

#Start the
systemctl start thumbor
systemctl enable thumbor
Copy the code

Access address nginx configuration/etc/nginx/conf. D/thumbor. Conf

#This is the storage service address of Minioserver { listen 8008; Server_name 192.168.2.1; The location ~ / ([A Za - z0-9. _ -] +)/(. *) ${proxy_http_version 1.1; proxy_set_header Connection "keep-alive"; proxy_set_header X-Real-IP $remote_addr; Proxy_pass http://127.0.0.1:8199/unsafe/$2/http://127.0.0.1:9000/test/$1; } the location / ~ ([A Za - z0-9. _ -] +) ${proxy_http_version 1.1; proxy_set_header Connection "keep-alive"; proxy_set_header X-Real-IP $remote_addr; Proxy_pass http://127.0.0.1:9000/test/$1; }}Copy the code