How to Install Minio on Ubuntu Server

In this tutorial, we will guide you through the process of installing Minio, an object storage server, on Ubuntu Server latest.

Step 1: Update Ubuntu System

Before we begin, it is essential to make sure that your Ubuntu system is up to date. So let's update the Ubuntu packages.

sudo apt-get update
sudo apt-get upgrade

Step 2: Install Minio

The easiest way to install Minio is by using the Golang installer. So let's start by installing Golang on your Ubuntu system.

sudo apt-get install golang

After installing Golang, download the latest version of Minio using curl.

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

Once you have downloaded the binary executable, you will need to make it executable.

chmod +x minio

Now, we need to create a directory where we can store the configuration data.

sudo mkdir /etc/minio

Create a user for Minio with home directory /etc/minio.

sudo useradd -r -s /bin/false minio-user
sudo chown minio-user:minio-user /etc/minio

Move the Minio binary file to /usr/local/bin to make it accessible globally.

sudo mv minio /usr/local/bin/minio

Now, let's create a systemd service for Minio.

Create a file /etc/systemd/system/minio.service with the following content.

[Unit]
Description=MinIO
Documentation=https://github.com/minio/minio
Wants=network-online.target
After=network-online.target

[Service]
User=minio-user
Group=minio-user
PIDFile=/var/run/minio.pid
WorkingDirectory=/etc/minio

LimitNOFILE=65536
LimitNPROC=4096
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SYS_PTRACE
AmbientCapabilities=CAP_NET_BIND_SERVICE
PrivateDevices=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true

ExecStart=/usr/local/bin/minio server http://localhost:9000/data

[Install]
WantedBy=multi-user.target

After creating the minio.service file, reload the systemd service.

sudo systemctl daemon-reload

Now, start the Minio service.

sudo systemctl start minio

And enable the Minio service to start automatically on system startup.

sudo systemctl enable minio

Step 3: Access Minio Web UI

After installing Minio on Ubuntu Server, you can access its web-based UI to manage your object storage.

By default, the Minio web interface runs on port 9000. To access the web UI, open your web browser and enter the server's IP address or domain name followed by the port number, like http://IP_ADDRESS:9000.

You should see the Minio login page. Enter your access and secret keys to log in to the Minio web UI.

After login, you can manage your object storage through the Minio UI.

Conclusion

In this tutorial, we have learned how to install Minio on Ubuntu Server Latest. Minio is a great solution for managing your object storage, and its powerful web UI makes it easy to manage your data effectively.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!