Minio is an object storage server released under Apache License v2.0. It is compatible with Amazon S3 cloud storage service. It is best suited for storing unstructured data such as photos, videos, log files, backups and container / VM images. Size of an object can range from a few KBs to a maximum of 5TB.
看介绍说它是实现兼容 Amazon S3 的文件存储服务,也就是说如果你不想用一些云存储服务(例如 Aliyun OSS,UpYun,七牛什么的...)你想省钱,或者业务要求不能那么做。
在这种情况下,我们除了直接存磁盘还有别的选择吗?现在有这个好了!
还有 Web 管理界面的哦!
看起来只需要修改一下 AWS 的配置信息就可以了:
Aws.config.update(
region: 'us-east-1',
endpoint: "http://127.0.0.1:9000",
force_path_style: true,
credentials: Aws::Credentials.new(
"Q3AM3UQ867SPQQA43P2F",
"zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
)
)