minio用法

1 Minio是在Apache License v2.0下发布的对象存储服务器。它与Amazon S3云存储服务兼容。

它最适合存储非结构化数据,如照片,视频,日志文件,备份和容器/ VM映像。对象的大小可以从几KB到最大5TB。

Minio服务器足够轻,可以与应用程序堆栈捆绑在一起,类似于NodeJS,Redis和MySQL。

        minio安装 (使用docker安装)

        docker pull minio/minio

        docker run -it -p 9000:9000 -d minio/minio server /dataminio用法_第1张图片

        browser浏览器登陆minio用法_第2张图片

2 常用命令

        命令用法 MinIO | The complete guide to the MinIO client

        ls List files and folders. 文件和文件夹列表

        mb Make a bucket or a folder. 创建一个bucket或一个文件夹

        cat Display file and object contents. 显示文件和对象的内容

        pipe Redirect STDIN to an object or file or STDOUT. 一个对象或文件或STDOUT重定向STDIN。

        share Generate URL for sharing. 为共享生成URL

        cp Copy files and objects. 复制文件和对象

        mirror Mirror buckets and folders. 镜桶和文件夹

        find Finds files which match the given set of parameters. 找到文件匹配给定的一组参数

        stat Stat contents of objects and folders. 统计对象和文件夹的内容

        diff List objects with size difference or missing between two folders or buckets. 列表对象之间的大小差异或失踪两个文件夹或桶

        rm Remove files and objects. 删除文件和对象。

        events Manage object notifications. 管理对象的通知

        watch Watch for file and object events. 注意文件和对象的事件。

        policy Manage anonymous access to objects. 管理对象的匿名访问。

        admin Manage Minio servers 管理Minio服务器

        session Manage saved sessions for cp command. cp命令管理保存会话。

        config Manage mc configuration file. 管理mc配置文件。

        version Print version info. 打印版本信息

3 添加云存储服务

        mc config host add --api --lookup

        :别名,是云存储服务的简称。

        :地址 minio服务的地址;本列是47.94.3.211:9000

        :登陆AccessKey docker logs minio容器ID 可查看;

        :登陆SecretKey docker logs minio容器ID 可查看;

        -- api : 可选参数 默认情况下设置为S3v4;

        --lookup :可选参数,它用于指示服务器是否支持dns或路径样式url

请求。它接受“dns”,“path”或“auto”作为有效值。默认情况下,它设置为“auto“,SDK会自动确定要使用的URL查找类型。

安装mc工具(minio客户端)Release Bugfix Release · minio/mc · GitHub

你可能感兴趣的:(大数据)