Skip to content
Branch: master
Find file History

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
minio.service

README.md

Systemd service for MinIO

Systemd script for Distributed MinIO server.

Installation

  • Systemd script is configured to run the binary from /usr/local/bin/.
  • Systemd script is configured to run the binary as minio-user, make sure you create this user prior using service script.
  • Download the binary. Find the relevant links for the binary at https://min.io/download#/linux.

Create the Environment configuration file

This file serves as input to MinIO systemd service. Use this file to add MINIO_VOLUMES with the correct paths, MINIO_OPTS to add MinIO server options like certs-dir, address. MinIO credentials should be MINIO_ACCESS_KEY and MINIO_SECRET_KEY in this file as well.

$ cat <<EOT >> /etc/default/minio
# Remote volumes to be used for MinIO server.
MINIO_VOLUMES=http://node{1...6}/export{1...32}
# Use if you want to run MinIO on a custom port.
MINIO_OPTS="--address :9199"
# Access Key of the server.
MINIO_ACCESS_KEY=Server-Access-Key
# Secret key of the server.
MINIO_SECRET_KEY=Server-Secret-Key

EOT

For distributed setup it is required to copy this file across all nodes to have consistent credentials.

Systemctl

Download minio.service in /etc/systemd/system/

( cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/distributed/minio.service )

Enable startup on boot

systemctl enable minio.service

Note

  • Replace User=minio-user and Group=minio-user in minio.service file with your local setup.
  • Ensure that MINIO_VOLUMES source has appropirate write access.
You can’t perform that action at this time.