MinIO mc client
The MinIO Client, commonly known as mc, is a command-line tool used to interact with MinIO, a high-performance object storage system. The mc client allows users to manage buckets and objects on the MinIO storage service.
- Install the mc client on a Linux/Windows machine from the link below:
https://min.io/docs/minio/linux/index.html - Run the following commands to configure MinIO.
Connect to MinIO: mc alias set storage-prod http://<private ip>:9000 minio-user minio123
Note: On Windows machines, ensure you run the above command from the directory where the mc client is located.
Create access and secret keys: mc admin accesskey create storage-prod/ –access-key <random_chars> –secret-key <random_chars>
Note: The access key and secret key must be at least 20 and 40 characters long, respectively. Both should consist of random characters to ensure strong security.
Set MinIO region: mc admin config set storage-prod region name=<region_name>
Restart MinIO: mc admin service restart storage-prod
Note: The <region name>, such as us-west-2 or anything-1, is purely a configuration value. It doesn’t determine the actual physical location where data is stored. Click here to view the list of supported MinIO regions.
Create buckets: mc mb storage-prod/<bucket_name>
Note: Create three separate buckets with appropriate names to store Jobs, App Icons, and Reports. Ex: mc mb storage-prod/suremdm-jobs.