MinIO is an opensource, Kubernetes-native object storage suite that provides a high-performance, AWS S3 compatible object storage. In this blog post, we will see how to install and configure MinIO object storage on an Ubuntu virtual machine.
Download MinIO Binary:
You can download the minio binary for Linux by running the below command.
wget https://dl.min.io/server/minio/release/linux-amd64/minio
Configure MinIO:
- Make the minio executable by running the below command
chmod +x minio
2. Move the binary to /usr/local/bin
mv minio /usr/local/bin/
3. Create a directory for minio by running
mkdir /data-minio
4. You can now run the below command to start minio server.
minio server /data-minio/
roshan@ubuntu-bc:~$ sudo minio server /data-minio/
Endpoint: http://192.168.30.10:9000 http://127.0.0.1:9000
RootUser: minioadmin
RootPass: minioadmin
Browser Access:
http://192.168.30.10:9000 http://127.0.0.1:9000
Command-line Access: https://docs.min.io/docs/minio-client-quickstart-guide
$ mc alias set myminio http://192.168.30.10:9000 minioadmin minioadmin
Object API (Amazon S3 compatible):
Go: https://docs.min.io/docs/golang-client-quickstart-guide
Java: https://docs.min.io/docs/java-client-quickstart-guide
Python: https://docs.min.io/docs/python-client-quickstart-guide
JavaScript: https://docs.min.io/docs/javascript-client-quickstart-guide
.NET: https://docs.min.io/docs/dotnet-client-quickstart-guide
Detected default credentials 'minioadmin:minioadmin', please change the credentials immediately using 'MINIO_ROOT_USER' and 'MINIO_ROOT_PASSWORD'
You can get minio browser access by going to http://IP-Address:9000 as in the below screenshot

To login to minio, provide the Access Key and Secret Key. The default Access Key and Secret Key for minio is minioadmin

Now you see we are logged into the minio.

Configure Minio to start using systemd
Lets configure minio to start automatically using systemd.
1. You can download minio service descriptor using the below command.
curl -O https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service
2. Edit the minio.service file as below
ubuntu@cli-vm:~$ cat minio.service
[Unit]
Description=MinIO
Documentation=https://docs.min.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio
[Service]
WorkingDirectory=/usr/local/
User=root
Group=root
ExecStart=/usr/local/bin/minio server /data-minio
# Let systemd restart this service always
Restart=always
# 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=infinity
SendSIGKILL=no
[Install]
WantedBy=multi-user.target
# Built for ${project.name}-${project.version} (${project.name})
3. Move the minio.servce file to the systemd configuration directory by running the below command
sudo mv minio.service /etc/systemd/system
4. Reload all systemd units by running
sudo systemctl daemon-reload
5. Start minio by running the below command
sudo systemctl start minio
6. Verify the minio service status by running the systemctl status command as in the below screenshot.

Create Buckets
To create buckets in minio, follow the below steps.
1. Login to minio UI by going to http://IP-Address/FQDN:9000
2. Once you login, click on the + icon on the right bottom corner

3. Now, click on the icon in the middle

4. Give a name for the bucket and hit enter

5. You can see the bucket that we created on the left panel

This completes the MinIO installation process. I hope this blog has helped you to install and configure your minio and create buckets. Thank you for reading the post! 🙂
Leave a Reply