AMP AMP

How to Install MinIO and Configure on Oracle Linux 8.5

To Install MinIO and Configure on Oracle Linux 8.5

Introduction

MinIO is a high-performance, software-defined object storage system released under the GNU Affero General Public License v3 and is compatible with Amazon's S3 cloud storage API. It can be used to build high-performance infrastructures for machine learning, analytics, and application data processing workloads.

Installation Procedure

Step 1: Check the OS Version by using the below command

[root@linuxhelplinuxhelp]# cat  /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.5"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"

Step 2: Add a MinIO user by using the below command

 [root@linuxhelplinuxhelp]#   useradd -s /bin/bash -d /opt/minio minio

Step 3: Create a Directory by using the below command

 [root@linuxhelplinuxhelp]#  mkdir -p /opt/minio/bin
   cd /opt/minio/bin

Step 4: Download the MinIO using the following command in opt/minio/bin directory

[root@linuxhelp ~]# wget https://dl.minio.io/server/minio/release/linux-amd64/minio

--2019-11-23 05:41:11--  https://dl.minio.io/server/minio/release/linux-amd64/minio
Resolving dl.minio.io (dl.minio.io)... 178.128.69.202
Connecting to dl.minio.io (dl.minio.io)|178.128.69.202|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43855872 (42M) [application/octet-stream]
Saving to: ‘minio’

100%[===========================================================>] 43,855,872   282KB/s   in 2m 12s 

2019-11-23 05:43:24 (325 KB/s) - ‘minio’ saved [43855872/43855872]

Step 5: To set MinIO to Execute use the below command

 [root@linuxhelplinuxhelp]#   chmod +x /opt/minio/bin/minio

Step 6: Ensure all files are owned by MinIO in /opt/minio: by using the below command

[root@linuxhelplinuxhelp]#   chown –R minio:minio /opt/minio/bin/minio

Step 7: Create a MinIO config file by using the below command

[root@linuxhelplinuxhelp]#   vim /opt/minio/minio.conf
MINIO_VOLUMES=/opt/minio/data

Step 8: Add minio systemd service files by using the below command

[root@linuxhelplinuxhelp]#   vim /etc/systemd/system/minio.service

[Unit]
Description=Minio
Documentation=https://docs.minio.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/opt/minio/bin/minio
[Service]
WorkingDirectory=/opt/minio
User=minio
Group=minio
PermissionsStartOnly=true
EnvironmentFile=-/opt/minio/minio.conf
ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in /opt/minio/minio.conf\""
ExecStart=/opt/minio/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
StandardOutput=journal
StandardError=inherit
### Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536
### Disable timeout logic and wait until process is stopped
TimeoutStopSec=0
### SIGTERM signal is used to stop Minio
KillSignal=SIGTERM
SendSIGKILL=no
SuccessExitStatus=0
[Install]
WantedBy=multi-user.target

Step 9: Disable Firewall and SELinux by using the below command

[root@linuxhelplinuxhelp]systemctl] # disable firewalld
[root@linuxhelplinuxhelp] # setenforce 0

Step 10: Enable and start the Minio service and check the status by using the below command

[root@linuxhelplinuxhelp]# systemctl enable minio
[root@linuxhelplinuxhelp]# systemctl start  minio
[root@linuxhelplinuxhelp]# systemctl status  minio

Step 11: Take a note of your MinIO access and secret key by using the below command

[root@linuxhelplinuxhelp]# /opt/minio/data/.minio.sys/config/config.json
Access key : minioadmin
Secret key : minioadmin

Step 12: Restart the MinIO service by using the below command

[root@linuxhelplinuxhelp]# systemctl restart  minio

Step 13: Once completed above step go to browser type the IP address as shown in the below image

You can access the Minio web interface by going to http://<server_ip>:9000/ – log in with the access and secret key

Step 14: Login with the access key and secret key as shown in the below image

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to Install MinIO and Configure on Oracle Linux 8.5.Your feedback is much welcome.

FAQ
Q
5. Is MinIO a database?
A
Minio can be classified as a tool in the "Cloud Storage" category.
Q
4. Is Minio faster than S3?
A
Minio is significantly faster than AWS S3 when used to store ClickHouse table data.
Q
3. What is a bucket in Minio?
A
Minio Object Storage uses buckets to organize objects. A bucket is similar to a folder or directory in a filesystem, where each bucket can hold an arbitrary number of objects.
Q
2. What is the difference between MinIO and S3?
A
It's like Amazon S3, but hosted locally.” Minio is an object storage server that implements the same public API as Amazon S3.
Q
1. What is the use of Minio?
A
Minio is the best server that is suited for storing unstructured data such as photos, videos, log files, backups, and containers.