# MinIO Installation and Configuration Guide

**1. Prerequisites**

Before proceeding with the installation and configuration of MinIO, ensure the following requirements are met:

* **Operating System:** Ubuntu 20.04 / 22.04 / 24.04
* **User Access:** A user account with **sudo (administrative) privileges**
* **Open Network Ports:**
  * **Port 9000** – Required for MinIO API access
  * **Port 9001** – Required for MinIO Web Console (Dashboard)

***

**2. Install MinIO Server**

```
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
sudo mv minio /usr/local/bin/
```

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FLA42VuKZsJRmXELqyhZT%2Fimage.png?alt=media&#x26;token=f505628d-6b18-4c42-b7e5-7f0211ba21e2" alt=""><figcaption></figcaption></figure>

**3. Create Storage Directory**

```
mkdir /home/ubuntu/minio
```

*(Change path if using a different user)*

**4.Firewall Configuration :**

**4.1: Check if UFW (Uncomplicated Firewall) is active**

```
sudo ufw status
```

* If you see **`Status: inactive`**, skip the next steps.
* If you see **`Status: active`**, continue below to allow the required ports.

**4.2: Allow MinIO Ports (only if firewall is active)**

```
sudo ufw allow 9000/tcp
sudo ufw allow 9001/tcp
sudo ufw reload
```

**5. Run MinIO (First Time Startup Test)**

```
minio server /home/ubuntu/minio --console-address ":9001"
```

Access:

* Web Console → `http://<VM_IP>:9001`
* Default credentials → `minioadmin / minioadmin`

(**Stop with Ctrl + C after testing**).<br>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FVgWmrebY7wXDHzo3oRTj%2Fimage.png?alt=media&#x26;token=944a438c-86fb-44ce-82ff-95a40af31e34" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2Fe5LR5ZXCvNQsh59mAzlh%2Fimage.png?alt=media&#x26;token=ae178532-5f6a-43d9-8d49-c389ce5fe6d5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FJbyVaWxLKY35GAOFy30n%2Fimage.png?alt=media&#x26;token=0b278ced-518a-45e6-925e-5197d7a15cff" alt=""><figcaption></figcaption></figure>

***

**6. Configure MinIO as Systemd Service**

**Create service file:**&#x20;

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

**paste below content:** Copy the config

```
[Unit]
Description=MinIO Object Storage Service
Documentation=https://docs.min.io
Wants=network-online.target
After=network-online.target

[Service]
User=root
Group=root
ExecStart=/usr/local/bin/minio server /home/ubuntu/minio --console-address ":9001"
Environment="MINIO_ROOT_USER=myadmin"                    #set username
Environment="MINIO_ROOT_PASSWORD=MyStrongPassword123"    #set password
Restart=always
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target
```

* After editing your file in nano, press:\
  \&#xNAN;**`Ctrl + O`** → It will show: *"File Name to Write: /path/filename"*
* Press **Enter** to confirm and save.
* Press **`Ctrl + X`** to exit nano editor.

***

**7. Enable and Start Service**

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

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2Fhu8Z3XGGtjm80GKMkB9H%2Fimage.png?alt=media&#x26;token=fa065b8d-007a-4db9-a800-b813756cff8c" alt=""><figcaption></figcaption></figure>

***

**8. Access MinIO Dashboard**

* URL: `http://<server-ip>:9001`
* Username: **myadmin**
* Password: **MyStrongPassword123**

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2Fe5LR5ZXCvNQsh59mAzlh%2Fimage.png?alt=media&#x26;token=ae178532-5f6a-43d9-8d49-c389ce5fe6d5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2F7D2v3d90W8lWeBgf6I2K%2Fimage.png?alt=media&#x26;token=c8612c18-fae0-4fb3-8546-8cc8786450b8" alt=""><figcaption></figcaption></figure>
