Install MinIO server
useradd -s /sbin/nologin -d /opt/minio minio
mkdir -p /opt/minio/bin
mkdir /opt/minio/data
yum install wget
wget https://dl.minio.io/server/minio/release/linux-amd64/minio -O /opt/minio/bin/minio
chmod +x /opt/minio/bin/minio
Config minio
/opt/minio/minio.confMINIO_VOLUMES=/opt/minio/data MINIO_ROOT_USER=admin MINIO_ROOT_PASSWORD=123456
chown -R minio:minio /opt/minio
config service
/etc/systemd/system/minio.service[Unit] Description=Minio Documentation=https://docs.minio.io Wants=network-online.target After=network-online.target AssertFileIsExecutable=/opt/minio/bin/minio [Service] WorkingDirectory=/opt/minio User=minio Group=minio PermissionsStartOnly=true EnvironmentFile=-/opt/minio/minio.conf ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_VOLUMES not set in /opt/minio/minio.conf\"" ExecStart=/opt/minio/bin/minio server $MINIO_OPTS $MINIO_VOLUMES StandardOutput=journal StandardError=inherit LimitNOFILE=65536 TimeoutStopSec=0 KillSignal=SIGTERM SendSIGKILL=no SuccessExitStatus=0 [Install] WantedBy=multi-user.target
systemctl enable minio
systemctl start minio
Final, MinIO serve at http://<ip>:9000
Install MinIO client
curl https://dl.min.io/client/mc/release/linux-amd64/mc --create-dirs -o $HOME/minio-binaries/mc
chmod +x $HOME/minio-binaries/mc
Connect client to MinIO server
$HOME/minio-binaries/mc alias set myminio http://<ip-server>:9000 ACCESS_KEY SECRET_KEY