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

网站建设的三大原则优化教程网

网站建设的三大原则,优化教程网,一流的龙岗网站制作,卫建委最新疫情通报MinIO是一个高性能的分布式对象存储服务。Python的minio库可操作MinIO,包括创建/列出存储桶、上传/下载/删除文件及列出文件。 查看帮助信息 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} \                                                                     --ftp="address=:8021" --ftp="passive-port-range=30000-40000" \                                                                         --sftp="address=:8022" --sftp="ssh-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' 'minioadmin'Docs: https://docs.min.io

1

Python实现增删改查

安装依赖

$ 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(endpoint="127.0.0.1:9001",access_key="minioadmin",secret_key="minioadmin",secure=False
)

创建存储桶(Buckets)

def create_bucket():client.make_bucket('bucket1', location="location1")

这里给存储桶命名为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.hrbkazy.com/news/53819.html

相关文章:

  • 网站建设找什么工作曼联vs恩波利比分
  • 电商营业执照怎么办黑帽seo是作弊手法
  • 怎么做淘宝网站步骤甘肃百度推广电话
  • 哪个免费自助建站系统最好用站长之家seo查找
  • 杭州公司官方网站制作seo优化教程
  • 帝国网站搬家如何制作网页游戏
  • 直播网站开发步骤seo网站内容优化
  • 视频下载网站免费推广优化关键词
  • wordpress主题开发难吗苏州百度搜索排名优化
  • 微官网和微网站北京债务优化公司
  • 关键词推广网站太原自动seo
  • 郑州专业做网站公百度官方网站网址
  • 网站如何做实名验证码如何建立网站平台
  • 凡科建站加盟靠谱吗重庆百度seo
  • wordpress本地 域名绑定广州百度seo代理
  • 外贸箱包网站模板网站内容seo
  • 网站开发的配置过程轻松seo优化排名
  • 健身网站的建设方案重庆百度快照优化排名
  • 网站安全建设杀毒软件网上营销培训课程
  • 招聘网站怎么做吸引人如何制作一个宣传网页
  • wordpress 使用 相对路径长春关键词优化公司
  • 一个女的让我和她做优惠网站百度ai搜索引擎
  • 湖南麟辉建设集团有限公司网站网络推广有哪些渠道
  • 做网站找个人还是公司网络营销swot分析
  • 做wish如何利用数据网站网站的设计流程
  • wordpress divi南京百度seo代理
  • 欧美风格企业网站杭州seo网站推广
  • 泰安集团网站建设费用今日郑州头条最新新闻
  • 内蒙网站开发网络seo是什么
  • 互助网站开发外贸推广引流