User Tools

Site Tools


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

This is an old revision of the document!


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
amazon-s3/minio/minio-installation-on-centos.1727109189.txt.gz · Last modified: 2024/09/23 19:33 by odefta