Table of Contents

Minio installation (server and client) on centos

Minio server installation

cd ~
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
sudo mv minio /usr/local/bin/
mkdir /data
sudo vi /etc/systemd/system/minio.service
[Unit]
Description=MinIO
Documentation=https://docs.min.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio
 
[Service]
WorkingDirectory=/usr/local/
 
User=minio-user
Group=minio-user
 
EnvironmentFile=-/etc/default/minio
ExecStart=/usr/local/bin/minio server /data --console-address ":9001"
 
Restart=always
LimitNOFILE=65536
 
[Install]
WantedBy=multi-user.targe
sudo useradd -r minio-user -s /sbin/nologin
sudo chown minio-user:minio-user /data
sudo systemctl daemon-reload
sudo systemctl start minio
sudo systemctl enable minio
sudo systemctl status minio

Now minio server should be available at: http://your-server-ip:9001

Minio client installation (mc)

wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
sudo mv mc /usr/local/bin/

Configure mc alias

Here as an example UygtBiTCOKAM4efljkMk is the access key and vVaOKM1hpHadL229z67JCIbw4JNRtIs3fGmU0BS6 is the secret key.
These should be configured from the UI (http://your-server-ip:9001).

mc alias set myminio http://your-server-ip:9000 UygtBiTCOKAM4efljkMk vVaOKM1hpHadL229z67JCIbw4JNRtIs3fGmU0BS6

List bucket content

Here partial-rights is a bucket inside myminio alias.

mc ls myminio/partial-rights

Push a file (upload)

Here full-access is a folder inside the partial-rights bucket.

mc cp /path/to/testfile myminio/partial-rights/full-access/

Pull a file (download)

Here TestFile file from the full-access folder is downloaded in /tmp folder.

mc cp myminio/partial-rights/full-access/TestFile /tmp/