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

网站轮播图怎么做1元网站建设精品网站制作

网站轮播图怎么做,1元网站建设精品网站制作,丰台网站关键词优化,东莞品牌整合营销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.yayakq.cn/news/547303/

相关文章:

  • 网络营销网站推广方法网站如何做sem推广
  • 本地怎样上传自己做的网站网络科技公司介绍
  • 门户网站模板免费下载企业培训体系
  • 电商网站那些功能用到静态化功能建网站要自己买服务器吗
  • cp网站开发是什么贵阳网站建设哪里好
  • 视频网站移动端投资理财网站模板
  • 网站建设什么打王思聪wordpress如何生成rss
  • 运城做网站的公司家具 东莞网站建设
  • 做网站用母版页不好么wordpress 标签云插件下载
  • 瑞安商城网站建设怎么在网站做谷歌广告
  • html论坛源码seo网站关键词排名提升
  • 做静态网站需要什么网站建设合同性质
  • 网上书店网站建设实训报告总结许昌做网站优化
  • 顺德网站制作案例价位有免费做网站的吗
  • wordpress500错误解决公司网站怎么做优化
  • 怒江商城网站建设营站快车代理平台
  • 做美剧盗版网站建好的网站能修改吗
  • 网站建设设计工具做网站有用没
  • 移动网站建设哪家便宜网站建设的ppt
  • 淘宝上买的网站模板怎么建设网站一整套vi设计
  • 南通网站建设祥云免费在线建站
  • 昆明城乡和住房建设局网站企业网站架构
  • 镇江企业网站设计开发价格一家专门做爆品印刷的网站
  • 元典科技网站建设建设企业网站的意义
  • wordpress 3.8.1如何做网站性能优化
  • 陶瓷网站制作权重高的网站有哪些
  • 网站建设模式怎么写旅游网站项目评估
  • 青海省建设厅网站地址dedecms制作网站地图
  • 石家庄网站建设找哪家好免费com域名注册
  • 深圳团购网站设计价格创新设计多功能水杯