Introduction

MinIO is a high-performance, distributed object storage system that is compatible with Amazon S3. It is designed for large-scale data storage and retrieval. In this guide, you will learn how to install MinIO on Rocky Linux. This setup can be effectively hosted on a Windows VPS UK for optimal performance and reliability.

Prerequisites

  • A Rocky Linux server with root access
  • Basic knowledge of Linux commands
  • An active internet connection

Step 1: Update Your System

Start by updating your package index and upgrading existing packages:

sudo dnf update -y

Step 2: Install Required Dependencies

Install wget if it's not already installed:

sudo dnf install wget -y

Step 3: Download MinIO

Download the latest version of MinIO server:

wget https://dl.min.io/server/minio/release/linux-amd64/minio

Make the MinIO binary executable:

chmod +x minio

Step 4: Move MinIO to a System Path

Move the MinIO binary to /usr/local/bin to make it accessible system-wide:

sudo mv minio /usr/local/bin/

Step 5: Create a User for MinIO

Create a dedicated user to run the MinIO server:

sudo useradd -r minio-user -s /sbin/nologin

Step 6: Create a Directory for MinIO Data

Create a directory for storing MinIO data:

sudo mkdir /usr/local/share/minio

Set the ownership of the directory to the MinIO user:

sudo chown minio-user:minio-user /usr/local/share/minio

Step 7: Create a Systemd Service File

Create a systemd service file to manage the MinIO service:

sudo nano /etc/systemd/system/minio.service

Add the following content to the file:

[Unit]
Description=MinIO
Documentation=https://min.io/docs/minio/linux/administration/overview.html
After=network.target

[Service]
User=minio-user
ExecStart=/usr/local/bin/minio server /usr/local/share/minio --console-address ":9001"
Restart=always
Environment=MINIO_ACCESS_KEY=youraccesskey
Environment=MINIO_SECRET_KEY=yoursecretkey

[Install]
WantedBy=multi-user.target

Replace youraccesskey and yoursecretkey with your desired MinIO access and secret keys.

Step 8: Start and Enable MinIO Service

Reload the systemd manager configuration, start the MinIO service, and enable it to start on boot:

sudo systemctl daemon-reload
sudo systemctl start minio
sudo systemctl enable minio

Step 9: Configure Firewall

Allow traffic on MinIO's default port (9000) and the console port (9001):

sudo firewall-cmd --zone=public --add-port=9000/tcp --permanent
sudo firewall-cmd --zone=public --add-port=9001/tcp --permanent
sudo firewall-cmd --reload

Step 10: Access MinIO Web Interface

Open your web browser and navigate to:

http://your_server_ip:9000

Log in using the access key and secret key you set in the service file.

Step 11: Conclusion

You have successfully installed MinIO Storage on Rocky Linux. This powerful object storage solution can significantly benefit from being hosted on a Windows VPS. For additional options, explore various VPS UK Windows solutions, including Windows Virtual Private Server Hosting and Windows VPS Hosting UK for optimal performance and security.

© 2024 MinIO Installation Tutorial. All rights reserved.

Hai trovato utile questa risposta? 0 Utenti hanno trovato utile questa risposta (0 Voti)