How to Manage Your MinIO Server
This guide will walk you through installing the MinIO client, configuring your MinIO server, and managing access permissions.
1. Install the MinIO Client
Download and install the MinIO client (mc
):
curl https://dl.min.io/client/mc/release/linux-amd64/mc \
--create-dirs \
-o $HOME/minio-binaries/mc
chmod +x $HOME/minio-binaries/mc
export PATH=$PATH:$HOME/minio-binaries/
Official installation instructions
2. Add Your MinIO Server to the Client
Set up an alias for your MinIO server:
bash +o history
mc alias set <ALIAS> <HOSTNAME> <ACCESS_KEY> <SECRET_KEY>
bash -o history
- Replace
<ALIAS>
,<HOSTNAME>
,<ACCESS_KEY>
, and<SECRET_KEY>
with your actual values.
Tip: Exit the shell to complete the installation.
3. Test the Configuration
Check your MinIO server status:
mc admin info <ALIAS>
4. Useful MinIO Client Commands
Find a list of all available commands here: MinIO Client Commands
5. Allow Anonymous Access to a Path
To set anonymous access permissions for a bucket or a specific path, use one of the following commands:
mc anonymous set upload <ALIAS>/<BUCKET>/[path]
mc anonymous set download <ALIAS>/<BUCKET>/[path]
mc anonymous set public <ALIAS>/<BUCKET>/[path]
- Replace
<ALIAS>
,<BUCKET>
, and[path]
as needed. - Add
/path
after the bucket name to set access for a specific path.
References: