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.

Revisions

  1. icarrr renamed this gist Apr 4, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. icarrr revised this gist Apr 4, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # Install MinIO
  3. icarrr created this gist Oct 24, 2021.
    24 changes: 24 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    #!/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