How to install and configure MinIO with daemon services on Rocky Linux 8.6
To Install And Configure MinIO With Daemon Services On Rocky Linux 8.6
Introduction:
MinIO is software-defined high-performance object storage licensed under the GNU Affero General Public License v3.0. MinIO is compatible with Amazon's S3 cloud storage service. MinIO provides high-performance infrastructure for machine learning, analytics, and application data workloads.
Installation Procedure:
Step 1: Check the installed version of OS by using the below command
[root@linuxhelp ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
Step 2: Add user for MinIO in Specific directory by using the below command
[root@linuxhelp ~]# useradd -s /bin/bash -d /opt/minio minio
Step 3: Create the directory for download MinIO by using the below command
[root@linuxhelp ~]# mkdir -p /opt/minio/bin
Step 4: Switch the directory by using the below command
[root@linuxhelp ~]# cd /opt/minio/bin/
Step 5: Download MinIO Package by using the below command
[root@linuxhelp bin]# wget https://dl.minio.io/server/minio/release/linux-amd64/minio
--2022-06-29 00:43:36-- https://dl.minio.io/server/minio/release/linux-amd64/minio
Resolving dl.minio.io (dl.minio.io)... 178.128.69.202, 138.68.11.125
Connecting to dl.minio.io (dl.minio.io)|178.128.69.202|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 95862784 (91M) [application/octet-stream]
Saving to: ‘minio’
minio 100%[=============================>] 91.42M 6.86MB/s in 30s
Step 6: Change the permission and ownership for downloaded MinIO fire by using the below command
[root@linuxhelp bin]# chmod +x /opt/minio/bin/minio
[root@linuxhelp bin]# chown -R minio:minio /opt/minio/bin/minio
Step 7: List the MinIO to check ownership and permission by using the below command
[root@linuxhelp bin]# ls -la
total 93616
drwxr-xr-x. 2 root root 19 Jun 29 00:43 .
drwx------. 4 minio minio 89 Jun 29 00:42 ..
-rwxr-xr-x. 1 minio minio 95862784 Jun 26 11:50 minio
Step 8: Create the MinIO volumes configuration file by using the below command
[root@linuxhelp bin]# vim /opt/minio/minio.conf
MINIO_VOLUMES=/opt/minio/data
Step 9: Add Minio systemd service file by using the below command
[root@linuxhelp bin]# vim /etc/systemd/system/minio.service
Step 10: Disable firewalld services by using the below command
[root@linuxhelp bin]# systemctl disable firewalld.service
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Step 11: Disable SE-Linux by using the below command
[root@linuxhelp bin]# setenforce 0
Step 12: Enable MinIO services by using the below command
[root@linuxhelp bin]# systemctl enable minio
Created symlink /etc/systemd/system/multi-user.target.wants/minio.service → /etc/systemd/system/minio.service.
Step 13: Start MinIO services by using the below command
[root@linuxhelp bin]# systemctl start minio.service
Step 14: Check MinIO status by using the below command
[root@linuxhelp bin]# systemctl status minio.service
● minio.service - Minio
Loaded: loaded (/etc/systemd/system/minio.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2022-06-29 00:46:50 EDT; 11s ago
Docs: https://docs.minio.io
Process: 39684 ExecStartPre=/bin/bash -c [ -n "${MINIO_VOLUMES}" ] || echo "Variable MINIO_>
Main PID: 39685 (minio)
Tasks: 7 (limit: 17274)
Memory: 72.3M
Step 15: Go to the browser and search IP with MinIO port number as shown in the below image
Step 16: Login console as shown in the below image
Step 17: This is the Dashboard page of MinIO
Step 18: Click on create bucket as shown in the below image
Step 19: Enter the name and click create bucket as shown in the below image
Step 20: To check this go to the MinIO volumes on terminal by using the below command
[root@linuxhelp ~]# cd /opt/minio/data/
Step 21: List the directory by using the below command
[root@linuxhelp data]# ls -la
total 0
drwxr-xr-x. 4 minio minio 36 Jun 29 00:49 .
drwx------. 6 minio minio 133 Jun 29 00:46 ..
drwxr-xr-x. 8 minio minio 108 Jun 29 00:46 .minio.sys
drwxr-xr-x. 2 minio minio 6 Jun 29 00:49 test
test is the bucket which we create in minio
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install and configure MinIO with daemon services on Rocky Linux 8.6. Your feedback is much welcome.