与 MinIO 安装说明(单节点单驱动)的差异

相比 单节点单驱动MinIO服务 部署, 单节点多驱动MinIO服务 的差异主要体现在环境变量文件配置的存储卷不同

创建环境变量文件

创建一个环境变量文件在/etc/default/minio. 对于 Windows 主机,指定类似于C:\minio\config. MinIO Server 容器可以使用这个文件作为所有环境变量的来源。

vi /etc/default/minio

以下示例提供了一个起始环境文件:

# MINIO_ROOT_USER and MINIO_ROOT_PASSWORD sets the root account for the MinIO server.
# This user has unrestricted permissions to perform S3 and administrative API operations on any resource in the deployment.
# Omit to use the default values 'minioadmin:minioadmin'.
# MinIO recommends setting non-default values as a best practice, regardless of environment.

MINIO_ROOT_USER=myminioadmin
MINIO_ROOT_PASSWORD=minio-secret-key-change-me

# MINIO_VOLUMES sets the storage volumes or paths to use for the MinIO server.
# The specified path uses MinIO expansion notation to denote a sequential series of drives between 1 and 4, inclusive.
# All drives or paths included in the expanded drive list must exist *and* be empty or freshly formatted for MinIO to start successfully.

MINIO_VOLUMES="/data-{1...4}"

# MINIO_SERVER_URL sets the hostname of the local machine for use with the MinIO Server.
# MinIO assumes your network control plane can correctly resolve this hostname to the local machine.

# Uncomment the following line and replace the value with the correct hostname for the local machine.

#MINIO_SERVER_URL="http://minio.example.net"
作者:Jeebiz  创建时间:2023-05-14 21:01
最后编辑:Jeebiz  更新时间:2024-08-02 11:04