这里会介绍最新的稳定版本 https://min.io/docs/minio/linux/index.html#quickstart-linux

下载,从这里选择要下载的版本 https://dl.min.io/server/minio/release/linux-amd64/ 例如:
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio-20231101183725.0.0.x86_64.rpm -O minio.rpm

rpm安装后,会有两个文件,一个二进制,一个service

[root@kk-k8s-node1 minio-c]# rpm -ql minio /lib/systemd/system/minio.service /usr/local/bin/minio

minio server 的启动语法 https://min.io/docs/minio/linux/reference/minio-server/minio-server.html#syntax

minio的数据目录,不能与/目录在同一个磁盘或分区

新版本使用的默认配置文件是/etc/default/minio 以下是示例文件

Set the hosts and volumes MinIO uses at startup
The command uses MinIO expansion notation {x...y} to denote a
sequential series.
The following example starts the MinIO server with two server pools.
The space delimiter indicates a seperate server pool
The second set of hostnames and volumes is the newly added pool.
The pool has sufficient stripe size to meet the existing erasure code
parity of the deployment (2 x EC:4)
The command includes the port on which the MinIO servers listen for each
server pool.
MINIO_VOLUMES="https://minio{1...4}.example.net:9000/mnt/disk{1...4}/minio https://minio{5...12}.example.net:9000/mnt/disk{1...8}/minio"
https://minio{1...4}.example.net:9000/mnt/disk{1...4}/minio 代表  minio1.example.net:9000/mnt/disk1/minio
至 minio4.example.net:9000/mnt/disk4/minio  16个存储的磁盘或者路径
Set all MinIO server options
The following explicitly sets the MinIO Console listen address to
port 9001 on all network interfaces. The default behavior is dynamic
port selection.
MINIO_OPTS="--console-address :9001"
Set the root username. This user has unrestricted permissions to
perform S3 and administrative API operations on any resource in the
deployment.
Defer to your organizations requirements for superadmin user name.
MINIO_ROOT_USER=minioadmin
Set the root password
Use a long, random, unique string that meets your organizations
requirements for passwords.
MINIO_ROOT_PASSWORD=minio-secret-key-CHANGE-ME
Set to the URL of the load balancer for the MinIO deployment
This value must match across all MinIO servers. If you do
not have a load balancer, set this value to to any one of the
MinIO hosts in the deployment as a temporary measure.
MINIO_SERVER_URL="https://minio.example.net:9000"