User Tools

Site Tools


amazon-s3:minio:minio-installation-on-centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
amazon-s3:minio:minio-installation-on-centos [2024/09/23 19:23] – created odeftaamazon-s3:minio:minio-installation-on-centos [2024/09/23 19:40] (current) odefta
Line 37: Line 37:
  
 <code bash> <code bash>
 +sudo useradd -r minio-user -s /sbin/nologin
 +sudo chown minio-user:minio-user /data
 </code> </code>
  
 +<code bash>
 +sudo systemctl daemon-reload
 +sudo systemctl start minio
 +sudo systemctl enable minio
 +sudo systemctl status minio
 +</code>
  
 +Now minio server should be available at: http://your-server-ip:9001
 +
 +===== Minio client installation (mc) =====
 +
 +<code bash>
 +wget https://dl.min.io/client/mc/release/linux-amd64/mc
 +chmod +x mc
 +sudo mv mc /usr/local/bin/
 +</code>
 +
 +==== 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).
 +<code>
 +mc alias set myminio http://your-server-ip:9000 UygtBiTCOKAM4efljkMk vVaOKM1hpHadL229z67JCIbw4JNRtIs3fGmU0BS6
 +</code>
 +
 +==== List bucket content ====
 +
 +Here partial-rights is a bucket inside myminio alias.
 +<code>
 +mc ls myminio/partial-rights
 +</code>
 +
 +==== Push a file (upload) ====
 +
 +Here full-access is a folder inside the partial-rights bucket.
 +<code>
 +mc cp /path/to/testfile myminio/partial-rights/full-access/
 +</code>
 +
 +==== Pull a file (download) ====
 +
 +Here TestFile file from the full-access folder is downloaded in /tmp folder.
 +<code>
 +mc cp myminio/partial-rights/full-access/TestFile /tmp/
 +</code>
amazon-s3/minio/minio-installation-on-centos.1727108580.txt.gz · Last modified: 2024/09/23 19:23 by odefta