.. author:: Marius Bertram <marius@brtrm.de>
.. tag:: file-storage
.. tag:: lang-go
.. tag_list::
MinIO is an open source object storage server, compatible with Amazon S3 written in go.
Note
For this guide you should be familiar with the basic concepts of
MinIO is licensed under Apache-2.0
https://github.com/minio/minio#license
Download the latest MinIO binary into your bin folder and make it executable:
[isabell@stardust ~]$ wget https://dl.min.io/server/minio/release/linux-amd64/minio -O ~/bin/minio
[isabell@stardust ~]$ chmod +x ~/bin/minio
[isabell@stardust ~]$
Create a folder for your data:
[isabell@stardust ~]$ mkdir minio
[isabell@stardust ~]$
Note
MinIO default port is 9000
Run Minio once to get the master AccessKey and SecretKey:
[isabell@stardust ~]$ minio server ~/minio
[...]
AccessKey: 2MN0QSZJS104ROKHYKNC
SecretKey: rozZqplprT+PZrYb4Mr5GNxeeh+CegYiMBvrvwfD
[...]
[isabell@stardust ~]$
Note
The AccessKey and the SecretKey are generated randomly. You can also find the keys in the MinIO config. The config file is located in the folder ~/minio/.minio.sys/config/config.json
You can set your own AccessKey and SecretKey via ENVIROMENT VARIABLES:
[isabell@stardust ~]$ export MINIO_ACCESS_KEY=minio
[isabell@stardust ~]$ export MINIO_SECRET_KEY=miniostorage
[isabell@stardust ~]$
Create the configuration ~/etc/services.d/minio.ini
:
[program:minio]
command=minio server %(ENV_HOME)s/minio
autostart=yes
autorestart=yes
[isabell@stardust ~]$ minio server
[...]
FLAGS:
--address value bind to a specific ADDRESS:PORT, ADDRESS can be an IP or hostname (default: ":9000")
--config-dir value, -C value [DEPRECATED] path to legacy configuration directory (default: "/home/isabell/.minio")
--certs-dir value, -S value path to certs directory (default: "/home/isabell/.minio/certs")
--quiet disable startup information
--anonymous hide sensitive information from logging
--json output server logs and startup information in json format
--compat trade off performance for S3 compatibility
--help, -h show help
[...]
[isabell@stardust ~]$
Open the url you set for MinIO.
On the webpage you can login with the AccessKey and SecretKey.
You can disable the webpage with the ENVIROMENT VARIABLES MINIO_BROWSER=OFF
.
The devs of MinIO provide a minio client. But you can use every S3 compatible client or library.
Just stop MinIO and replace the old binary with the newer one:
[isabell@stardust ~]$ supervisorctl stop minio
[isabell@stardust ~]$ wget https://dl.min.io/server/minio/release/linux-amd64/minio -O ~/bin/minio
[isabell@stardust ~]$ chmod +x ~/bin/minio
[isabell@stardust ~]$ supervisorctl start minio
[isabell@stardust ~]$
Official MinIO Docs: https://docs.min.io
.. author_list::