Skip to content

Instantly share code, notes, and snippets.

@icarrr
Last active April 4, 2022 02:57
Show Gist options
  • Save icarrr/e24f38a4b4bf98b4459a9d5d8838fca1 to your computer and use it in GitHub Desktop.
Save icarrr/e24f38a4b4bf98b4459a9d5d8838fca1 to your computer and use it in GitHub Desktop.

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