nordvpn

How to install minio on mac with brew

Install minio on Mac

Minio is an object storage server released under Apache License v2.0. It is compatible with Amazon S3 cloud storage service. It is best suited for storing unstructured data such as photos, videos, log files, backups and container / VM images. The size of an object can range from a few KBs to a maximum of 5TB.

Minio server is light enough to be bundled with the application stack, similar to NodeJS, Redis, and MySQL.

Pre-requisite of minio

  • brew should be installed

Install minio with brew

Now just use brew to install minio

brew install minio

Start Services of minio

To have launchd start minio now and restart at login:

brew services start minio

The output will be:

==> Successfully started `minio` (label: homebrew.mxcl.minio)

Start minio

Just execute the following command to start minio, we need to give the directory for minio

minio server minio

When you run minio you will get a key and a secret. These are used to access the client and the browser.

Endpoint: http://x.x.x.x:9000 http://x.x.x.x:9000 http://127.0.0.1:9000
AccessKey: PJJFTWJF2RWCRKDRK8O0
SecretKey: AhhOekzVECMpiYJPlj6bMrGGj6elZnMZNKG97Esf
Browser Access:
http://x.x.x.x:9000 http://x.x.x.x:9000 http://127.0.0.1:9000

Command-line Access: https://docs.minio.io/docs/minio-client-quickstart-guide
$ mc config host add myminio http://192.168.179.194:9000 PJJFTWJF2RWCRKDRK8O0 AhhOekzVECMpiYJPlj6bMrGGj6elZnMZNKG97Esf

Object API (Amazon S3 compatible):
Go: https://docs.minio.io/docs/golang-client-quickstart-guide
Java: https://docs.minio.io/docs/java-client-quickstart-guide
Python: https://docs.minio.io/docs/python-client-quickstart-guide
JavaScript: https://docs.minio.io/docs/javascript-client-quickstart-guide
.NET: https://docs.minio.io/docs/dotnet-client-quickstart-guide

Install Minio client

Minio Client (mc) provides a modern alternative to UNIX commands like ls, cat, cp, mirror, diff etc. It supports filesystems and Amazon S3 compatible cloud storage service (AWS Signature v2 and v4).

Read Also: How to install minio server on Ubuntu
Read Also: How to install minio on centos 7

We need to use brew again to install Minio client.

brew install minio-mc

Configure minio client

We will configure minio instance with mc client

mc config host add minio http://127.0.0.1:9000 accessCode secretCode

Create bucket

If you want to upload some data or files you need to create a bucket. We will use mb to create the bucket.

mc mb minio/photos

List the files

We can use mc command to list the files in the bucket

mc ls minio/photos

Currently, there is nothing in photos directory let’s upload some file in it.

mc cp ~/Downloads/minio.jpg minio/photos/
...ads/minio.jpg: 22.57 KB / 22.57 KB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.00% 10.22 MB/s 0s

Check the files in bucket

mc ls minio/photos/
[2017-07-28 15:49:43 CEST] 23KiB minio.jpg

Check out files in browser

You need to provide the AccessKey and SecretKey n order to access the minio browser

install minio on mac

 

You can create and access buckets from minio browser also.

Read Next: System Services for minio centos

If you have any issues using this tutorial please feel free to comment below..

Leave a Reply

Your email address will not be published.


*



The reCAPTCHA verification period has expired. Please reload the page.

48-Hour Flash Sale! Courses from just $10.99