minio 支持基于yaml 的配置参数

minio 23 年底的一个版本中,支持了基于yaml 的配置参数,以前基于环境变量的模式还是支持的,只是yaml 成为一个首选模式

参考配置

  • yaml 配置
version: v1
address: ':9000'
rootUser: 'minioadmin'
rootPassword: 'pBU94AGAY85e'
console-address: ':9001'
certs-dir: '/home/user/.minio/certs/'
pools: # Specify the nodes and drives with pools
  -
    - 'https://server-example-pool1:9000/mnt/disk{1...4}/'
    - 'https://server{1...2}-pool1:9000/mnt/disk{1...4}/'
    - 'https://server3-pool1:9000/mnt/disk{1...4}/'
    - 'https://server4-pool1:9000/mnt/disk{1...4}/'
  -
    - 'https://server-example-pool2:9000/mnt/disk{1...4}/'
    - 'https://server{1...2}-pool2:9000/mnt/disk{1...4}/'
    - 'https://server3-pool2:9000/mnt/disk{1...4}/'
    - 'https://server4-pool2:9000/mnt/disk{1...4}/'
...
 
options:
  ftp: # settings for MinIO to act as an ftp server
    address: ':8021'
    passive-port-range: '30000-40000'
  sftp: # settings for MinIO to act as an sftp server
    address: ':8022'
    ssh-private-key: '/home/user/.ssh/id_rsa'
  • 启动
minio server --config config.yaml
 
 

说明

基于配置文件的管理会方便不少,至少看着比较清晰,同时可以提供一个比较完整的配置信息,方便查看以及调整

参考资料

https://github.com/minio/minio/releases?page=2
https://github.com/minio/minio/blob/master/docs/distributed/CONFIG.md

posted on   荣锋亮  阅读(335)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2023-01-24 Docker 容器添加自定义root ca
2023-01-24 step-ca ha 模式说明
2023-01-24 caddyserver step-ca 集成
2021-01-24 json-caching-proxy 支持har 的cache proxy
2021-01-24 cube.js 的客户端简单介绍
2021-01-24 cube.js 开发说明
2021-01-24 cube.js 代码集成模式

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示