当前位置: 首页 > news >正文

辽宁食品 中企动力网站建设河间网站

辽宁食品 中企动力网站建设,河间网站,广州网站优化推广公司,网络优化师自学网站MinIO是一个高性能的分布式对象存储服务。Python的minio库可操作MinIO#xff0c;包括创建/列出存储桶、上传/下载/删除文件及列出文件。 查看帮助信息 minio.exe --help minio.exe server --help …MinIO是一个高性能的分布式对象存储服务。Python的minio库可操作MinIO包括创建/列出存储桶、上传/下载/删除文件及列出文件。 查看帮助信息 minio.exe --help minio.exe server --help ME: minio.exe server - start object storage server AGE: minio.exe server [FLAGS] DIR1 [DIR2..] minio.exe server [FLAGS] DIR{1...64} minio.exe server [FLAGS] DIR{1...64} DIR{65...128} R: DIR points to a directory on a filesystem. When you want to combine multiple drives into a single large system, pass one directory per filesystem separated by space. You may also use a ... convention to abbreviate the directory arguments. Remote directories in a distributed setup are encoded as HTTP(s) URIs. AGS: --config value specify server configuration via YAML configuration [%MINIO_CONFIG%] --address value bind to a specific ADDRESS:PORT, ADDRESS can be an IP or hostname (default: :9000) [%MINIO_ADDRESS%] --console-address value bind to a specific ADDRESS:PORT for embedded Console UI, ADDRESS can be an IP or hostname [%MINIO_CONSOLE_ADDRESS%] --ftp value enable and configure an FTP(Secure) server --sftp value enable and configure an SFTP server --certs-dir value, -S value path to certs directory (default: C:\\Users\\lilon\\.minio\\certs) --quiet disable startup and info messages --anonymous hide sensitive information from logging --json output logs in JSON format --help, -h show help AMPLES: 1. Start MinIO server on /home/shared directory. C:\ minio.exe server /home/shared 2. Start single node server with 64 local drives /mnt/data1 to /mnt/data64. C:\ minio.exe server /mnt/data{1...64} 3. Start distributed MinIO server on an 32 node setup with 32 drives each, run following command on all the nodes C:\ minio.exe server http://node{1...32}.example.com/mnt/export{1...32} 4. Start distributed MinIO server in an expanded setup, run the following command on all the nodes C:\ minio.exe server http://node{1...16}.example.com/mnt/export{1...32} \ http://node{17...64}.example.com/mnt/export{1...64} 5. Start distributed MinIO server, with FTP and SFTP servers on all interfaces via port 8021, 8022 respectively C:\ minio.exe server http://node{1...4}.example.com/mnt/export{1...4} \ --ftpaddress:8021 --ftppassive-port-range30000-40000 \ --sftpaddress:8022 --sftpssh-private-key${HOME}/.ssh/id_rsa 启动服务 $ minio.exe server --address :9001 minio_data\ MinIO Object Storage Server Copyright: 2015-2025 MinIO, Inc. License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html Version: RELEASE.2025-01-20T14-49-07Z (go1.23.5 windows/amd64)API: http://127.0.0.1:9001RootUser: minioadminRootPass: minioadminWebUI: http://127.0.0.1:62335RootUser: minioadminRootPass: minioadminCLI: https://min.io/docs/minio/linux/reference/minio-mc.html#quickstart$ mc alias set myminio http://192.168.1.100:9001 minioadmin minioadminDocs: https://docs.min.ioPython实现增删改查 安装依赖 $ pip install minio Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ Installing collected packages: minio Successfully installed minio-7.2.15连接服务 from minio import Minioclient Minio(endpoint127.0.0.1:9001,access_keyminioadmin,secret_keyminioadmin,secureFalse )创建存储桶Buckets def create_bucket():client.make_bucket(bucket1, locationlocation1)这里给存储桶命名为bucket1位置在location1。 列出所有的存储桶 def list_buckets():buckets client.list_buckets()for bucket in buckets:print(bucket.name, bucket.creation_date)上传和下载文件 def upload_file():client.fput_object(bucket1, 1.png, path/to/file/1.png)def download_file():client.fget_object(bucket1, 1.png, path/to/file/2.png)这里的存储桶是bucket1文件命名为1.png 移除文件 def remove_file():client.remove_object(bucket1, 1.png) 列出所有的存储对象 def list_objects():objects client.list_objects(bucket1)for obj in objects:print(obj.object_name)相关链接 官网 https://min.io/ https://github.com/minio/minio
http://www.hkea.cn/news/14296396/

相关文章:

  • 外贸圈海关数据合肥网站快速排名优化
  • 网站建设比较好的多少钱营销策划方案目录
  • 东莞搜索引擎网站推广wordpress安装手机版
  • 知道源代码如何做网站德州做网站公司
  • 辽宁省住房和城乡建设厅网站打不开广东手机网站开发多少
  • php mysql网站后台源码花80亿美元建空间站
  • 做网站的外包公司上班好不好教育网站报名
  • html企业网站怎么做今天重大新闻头条
  • 如何做好网站优化wordpress首页怎么美化
  • 邵阳小学网站建设上海最新风险地区一览表
  • 网站建设页面设计图片简约wordpress免费主题
  • 建设银行管方网站asp.net mvc 网站开发之美 pdf
  • 暖色调网页设计网站科技为了上大学上交可控核聚变
  • 企业营销的网站wordpress安装 windows
  • html5网站建设基本流程百度怎么免费推广
  • 网络销售形式湛江企业网站seo
  • 闵行集团网站建设网站建设 国鸿
  • flash教程网站都有哪些wordpress添加视频
  • 全国建设管理信息网站网站开发招标方案范本
  • 电商网站后台管理系统模板涿州做网站
  • 织梦网站网址变了如何搬家网站目录管理模板
  • 文化传媒有限公司 网站建设黄页群发软件
  • 苏州网站建设代理黄页网址大全
  • 餐饮网站建设方案网站英文联系我们
  • 做网站配置ui培训班好
  • 海纳网站建设成品网站w灬源码火龙果
  • 上海做原创网站广州微信网站建设哪家好
  • 企业网站建设哪家深圳好蜘蛛网站建设公司
  • 网站开发要学什么语言网站建设的几点体会
  • 欧莱雅官方网站的建设外贸销售