1. RPM 安装

https://dl.min.io/server/minio/release/ 选择你需要的安装包

下载最新版rpm 包

image-20230414090243161

1.1 安装

rpm -iv minio.rpm

1.2 添加用户

groupadd -r minio-user
useradd -M -r -g minio-user minio-user
chown minio-user:minio-user /mnt/data

1.3 创建配置文件

/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 volume or path to use for the MinIO server.

MINIO_VOLUMES="/mnt/data"

# 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"

启动MinIO Service

systemctl start minio.service

2. 踩的坑

2.1 Segmentation fault (core dumped) 或者段错误

原因是因为提供的包是不全的,可以通过 https://dl.min.io/server/minio/release/下载的minio程序包可以解决此问题

或者使用 rpm的方式安装

3. 参考

官网
http://www.minio.org.cn/docs/minio/linux/operations/install-deploy-manage/deploy-minio-single-node-single-drive.html#minio-snsd
高性能分布式对象存储 MinIO 部署实战,步骤齐全,少走坑路

Logo

更多推荐