Setting up basic minio on Fedora 28

xw19 Published on: 2018, 11 Nov

Minio is Amazon S3 inspired Object storage that you can deploy to our private infrastructure.

Note: This tutorial doesn’t work well with SELinux so we need to turn it off till I find a good solution

Install apache and wget packages from repositories.

sudo dnf install wget httpd

Get the Minio

wget https://dl.minio.io/server/minio/release/linux-amd64/minio

Next, we need to give execute permissions by

chmod +x minio

We will then move it to /usr/bin

sudo mv minio /usr/bin sudo chown root:root /usr/bin/minio

In this example, we will use /data as the data directory to store all the files and buckets. So if you can mount partitions on /data using LVM that is great. But that is beyond the scope of this tutorial.

sudo mdkir -p /data

To manage minio server process we need to use systemd service. Create a minio.service file in the /lib/systemd/system/ directory.

[Unit]
Description=minio

[Service]
ExecStart=/usr/bin/minio server /data

[Install]
WantedBy=multi-user.target

Next, reload the systemctl and start and enable minio.

sudo systemctl daemon-reload sudo

systemctl start minio sudo systemctl enable minio

if all goes well we can see access keys if we check the logs

sudo journalctl -u minio

Jun 25 21:12:37 localhost.localdomain systemd[1]: minio.service: Main process exited, code=exited, status=203/EXEC Jun 25 21:12:37 localhost.localdomain systemd[1]: minio.service: Failed with result 'exit-code'. Jun 25 21:15:10 localhost.localdomain systemd[1]: Started minio. Jun 25 21:15:10 localhost.localdomain minio[19075]: Created minio configuration file successfully at /root/.minio Jun 25 21:15:14 localhost.localdomain minio[19075]: Endpoint:  http://192.168.43.244:9000  http://192.168.122.1:9000  http://127.0.0.1:9000 Jun 25 21:15:14 localhost.localdomain minio[19075]: AccessKey: AMM96GEXYWFC62LNUFIW Jun 25 21:15:14 localhost.localdomain minio[19075]: SecretKey: cKoafURCy5Mtx9CqHuRT7bxzlZQ9pNGKCgyosA/Y Jun 25 21:15:14 localhost.localdomain minio[19075]: Browser Access: Jun 25 21:15:14 localhost.localdomain minio[19075]:    http://192.168.43.244:9000  http://192.168.122.1:9000  http://127.0.0.1:9000 Jun 25 21:15:14 localhost.localdomain minio[19075]: Command-line Access: https://docs.minio.io/docs/minio-client-quickstart-guide Jun 25 21:15:14 localhost.localdomain minio[19075]:    $ mc config host add myminio http://192.168.43.244:9000 AMM96GEXYWFC62LNUFIW cKoafURCy5Mtx9CqH> Jun 25 21:15:14 localhost.localdomain minio[19075]: Object API (Amazon S3 compatible): Jun 25 21:15:14 localhost.localdomain minio[19075]:    Go:         https://docs.minio.io/docs/golang-client-quickstart-guide Jun 25 21:15:14 localhost.localdomain minio[19075]:    Java:       https://docs.minio.io/docs/java-client-quickstart-guide Jun 25 21:15:14 localhost.localdomain minio[19075]:    Python:     https://docs.minio.io/docs/python-client-quickstart-guide