Difference between revisions of "MinIO"

From SME Server
Jump to navigationJump to search
(Created page with "Installing MinIO on SME Just some notes on the basics of installing MinIO It works, but needs a startup script to automate start/stop This could be used with your own insta...")
(No difference)

Revision as of 16:29, 16 October 2019

Installing MinIO on SME

Just some notes on the basics of installing MinIO

It works, but needs a startup script to automate start/stop

This could be used with your own instance of say [RClone](https://wiki.contribs.org/Rclone)

https://min.io/download#/linux https://docs.min.io/docs/minio-quickstart-guide.html https://docs.min.io/docs/minio-server-configuration-guide.html

Followed notes form here https://www.centosblog.com/install-configure-minio-object-storage-server-centos-linux/

Install Minio on Centos Linux

In this example, we’ll install Minio to /opt/minio, and will configure it to run as a (systemd) service. 1. Add a minio user useradd -s /sbin/nologin -d /opt/minio minio

2. Set up directories mkdir -p /opt/minio/bin mkdir /opt/minio/data # this will be your data partition

3. Install minio server binary and set it to executable. In this example we use the Linux x64 binary. wget https://dl.minio.io/server/minio/release/linux-amd64/minio -O /opt/minio/bin/minio chmod +x /opt/minio/bin/minio

4. Ensure all files are owned by minio in /opt/minio: chown -R minio:minio /opt/minio


This will start on all interfaces:

/opt/minio/bin/minio server /opt/minio/data

This will limit it to one interface:

/opt/minio/bin/minio server --address 1.2.3.4:9000 /opt/minio/data

Note this only runs on http. It could run http but for EXTERNAL access it is recommended to run a revers proxy. You can then use SSL certs as well.

Make sure you keep a note of the AccessKey and SecretKey.

You can access the server via http://1.2.3.4:9000

Other options

/opt/minio/bin/minio --help

MinIO configuration client and commands

https://github.com/minio/mc/blob/master/docs/minio-admin-complete-guide.md

This can enable tracing for issues etc


Some other notes

Init scripts that don't work on SME - note there is a Unit file for systemd

git clone https://github.com/minio/minio-service.git