The tutorial for deploying MinIO cluster on CentOS 7 system is as follows:
-
Install MinIO:
-
On each node, execute the following command to install the MinIO server:
wget https://dl.min.io/server/minio/release/linux-amd64/minio chmod +x minio sudo mv minio /usr/local/bin/
-
-
Create the MinIO data directory:
-
On each node, create a directory to store MinIO data:
sudo mkdir -p /data/minio/data
-
-
Configure MinIO node:
-
On each node, execute the following command to create the MinIO configuration file:
sudo vi /etc/default/minio
-
In the configuration file, set the following parameters:
MINIO_VOLUMES="/data/minio/data" MINIO_OPTS="-C /etc/minio --address <节点IP地址>:9000"
- Will be
<节点IP地址>
replaced with the IP address of the current node.
- Will be
-
-
Start the MinIO node:
-
On each node, execute the following command to start the MinIO node:
sudo minio server start
-
-
Configure load balancing (optional):
- A load balancer (such as Nginx or HAProxy) can be used to distribute client requests to MinIO nodes.
- On the load balancer, configure a reverse proxy or load balancing rule to forward client requests to port 9000 of the MinIO node.
-
Verify cluster:
-
On any node, execute the following command and use the MinIO client tool (mc) to verify the cluster connection:
mc config host add <别名> http://<负载均衡器IP地址>:9000 <Access_Key> <Secret_Key> mc ls <别名>
- Replace
<别名>
with the alias of your choice,<负载均衡器IP地址>
with the IP address of your load balancer,<Access_Key>
and with<Secret_Key>
your configured MinIO access key.
- Replace
-
Through the above steps, you can deploy a MinIO cluster on CentOS 7 system. Make sure the MinIO server is installed on each node and configured with the correct data directory and node address. You can optionally use a load balancer to distribute client requests to MinIO nodes and use the MinIO client tool to verify connectivity to the cluster. Please configure and adjust appropriately according to actual needs.