Several MinIO servers can be connected to create a high availability cluster, re-distributing and duplicating data. Read more in the official documentation: https://docs.min.io/docs/distributed-minio-quickstart-guide.html.
You can find instructions on installing and configuring MinIO on the official website: https://docs.min.io/docs/minio-quickstart-guide.
Basic information
начало внимание
You need at least 2 servers with 2 drives per node to create a MinIO cluster.
конец внимание
This article describes the installation of an external MinIO server without creating a cluster.
In this example, 1 node with the following hostname and IP address is used: minio-server, 192.168.1.41
Step 1: Install MinIO
- Download the MinIO server binary file from the official website:
sudo wget https://dl.min.io/server/minio/release/linux-amd64/minio
- Make the file executable:
sudo chmod +x minio
- Move the file to /usr/local/bin where the launch script will be searching for it:
sudo mv minio /usr/local/bin
- Create a new user:
sudo useradd -r minio-user -s /sbin/nologin
- Make minio-user the owner of the file:
sudo chown minio-user:minio-user /usr/local/bin/minio
- Create a directory where MinIO will store files:
sudo mkdir /usr/local/share/minio
- Make minio-user the owner of this directory:
sudo chown minio-user:minio-user /usr/local/share/minio
- Create a directory to store MinIO configuration:
sudo mkdir /etc/minio
- Make minio-user the owner of this directory:
sudo chown minio-user:minio-user /etc/minio
- Using a text editor, create an environment file where the default settings can be changed:
sudo nano /etc/default/minio
- Add the following variables to the file:
MINIO_ROOT_USER="elma365user"
MINIO_ROOT_PASSWORD="SecretPassword"
MINIO_VOLUMES="/usr/local/share/minio/"
MINIO_REGION = "us-east-1"
MINIO_OPTS="-C /etc/minio --console-address :9001 --address :9000"
Where:
- MINIO_ROOT_USER sets the key you will use to access the user interface of the MinIO browser.
- MINIO_ROOT_PASSWORD sets the private key you will use to enter your credentials in the MinIO interface.
- MINIO_VOLUMES is the directory where files will be stored.
- MINIO_OPTS determines where and how the server serves data (in our case, it makes the MinIO service available from all external addresses).
- Save and close the file.
Step 2: Create the systemd service for MinIO
- Download the MinIO service official file:
sudo curl -O https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service
- Check the content of the minio.service file before you use it by opening it in a text editor:
sudo nano minio.service
- Move minio.service into the systemd configuration directory:
sudo mv minio.service /etc/systemd/system
- Restart the systemd units:
sudo systemctl daemon-reload
- Start the MinIO service and add it to startup:
sudo systemctl enable --now minio
Step 3: Install the MinIO Client tool and create a bucket
- Download the MinIO Client tool binary file from the official website:
sudo wget https://dl.min.io/client/mc/release/linux-amd64/mc
- Make the file executable:
sudo chmod +x mc
- Add an alias to MinIO:
./mc alias set minio http://minio-server.your_domain:9000 elma365user SecretPassword
- Create a bucket:
./mc mb minio/s3elma365 --region=us-east-1
Step 4: Connect to ELMA365
Parameters used to establish a connection with MinIO:
- address: minio-server.your_domain:9000
- bucket: s3elma365
- region: us-east-1
- access key ID: elma365user
- secret access key: SecretPassword
- upload method: PUT
- enable SSL? No
Found a typo? Highlight the text, press ctrl + enter and notify us