Skip to content

Instantly share code, notes, and snippets.

@icarrr
Last active Apr 4, 2022
Embed
What would you like to do?

Install MinIO

#!/bin/bash
set -e
wget https://dl.min.io/server/minio/release/linux-amd64/minio
sudo chmod +x minio
sudo mv minio /usr/local/bin
sudo useradd -r minio-user -s /sbin/nologin
sudo chown minio-user:minio-user /usr/local/bin/minio
sudo mkdir /usr/local/share/minio
sudo chown minio-user:minio-user /usr/local/share/minio
sudo mkdir /etc/minio
sudo bash -c "cat << 'EOF' > /etc/default/minio
MINIO_VOLUMES=\"/usr/local/share/minio/\"
MINIO_OPTS=\"-C /etc/minio --address 0.0.0.0:9090 --console-address 0.0.0.0:19090\"
MINIO_ROOT_USER=\"xminioadmin\"
MINIO_ROOT_PASSWORD=\"xminioadmin\"
EOF"
sudo chown minio-user:minio-user /etc/minio -R
curl -O https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service
sudo mv minio.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl start minio
systemctl status minio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment