自定義MinIO配置主要有以下幾種方式:
--
指定參數,如--address ":9000"
設置服務端口。export
設置變量(如MINIO_ROOT_USER
、MINIO_VOLUMES
),適用于腳本或Systemd服務。config.json
(非二進制啟動時),需包含accessKey
、secretKey
、serverAddress
等字段。mc admin config export
導出集群配置,再通過mc admin config import
導入修改后的配置。/etc/default/minio
環境變量文件持久化配置。具體配置項可參考MinIO官方文檔。