部署
https://dl.min.io/server/minio/release/linux-amd64/minio
1,授权
chmod +x minio
mv minio /usr/local/bin/
2,配置minio.cnf
vim /etc/minio/minio.cnf
MINIO_ACCESS_KEY=senyint
MINIO_SECRET_KEY=gyqtfqclsgvuxuwum.cmhkn59CHekacb
MINIO_VOLUMES="http://192.168.20.136/export1 http://192.168.20.136/export2 http://192.168.20.161/export1 http://192.168.20.161/export2"
MINIO_OPTS="--address :9000"
3,配置systemctl启动文件
cat /usr/lib/systemd/system/minio.service
[Unit]
Description=Minio
Documentation=https://docs.minio.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio
[Service]
WorkingDirectory=/usr/local/
User=root
Group=root
EnvironmentFile=-/etc/minio/minio.cnf
ExecStart=/usr/local/bin/minio server $MINIO_OPTS
StandardOutput=journal
StandardError=inherit
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=0
# SIGTERM signal is used to stop Minio
KillSignal=SIGTERM
SendSIGKILL=no
SuccessExitStatus=0
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start minio
systemctl enable minio
systemctl stop minio