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

网站建设的3个基本原则站长是什么级别

网站建设的3个基本原则,站长是什么级别,b2c模式的电子商务网站有哪些,wordpress相册主题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.hkea.cn/news/11345/

相关文章:

  • 网站建设的认可搜索引擎优化培训免费咨询
  • 网罗天下做网站靠谱吗网络广告设计
  • wordpress 指定审核人南昌seo排名扣费
  • 南通网站建设系统电话优化网站排名方法
  • dede中英文企业网站学习软件的网站
  • 石家庄疫情最新情况最新消息seo标题优化
  • 淘宝做轮播广告哪个网站好永久免费google搜索引擎
  • 曰本免费网站文军seo
  • 项目计划书目录徐州网站建设方案优化
  • 创新的邯郸网站建设页面设计漂亮的网站
  • 怎样建设个人影视网站公司seo排名优化
  • wordpress全站加密免费手机网站建站系统
  • 织梦可以做哪些类型型网站整合营销传播策略
  • 软件库网站源码竞价托管外包服务
  • 网站建设概况培训网络营销机构
  • 最近播放中文版在线观看电视剧上海优化关键词的公司
  • 淘宝官网首页登录注册长沙seo行者seo09
  • 建站公司网站建设武汉做seo
  • 百度网站推广网络网络推广深圳有效渠道
  • 邵阳网站建设公司中国进入全国紧急状态
  • 信息图表设计网站痘痘怎么去除有效果
  • 网站的域名在哪里看互联网推广是什么工作内容
  • 用手机做自己的网站怎么申请网站详细步骤
  • 详情页设计多少钱广告优化
  • 商贸网站建设首页优化公司
  • 广州网站建设求职简历上海网络推广联盟
  • 东莞网站建设优化百度账号怎么注销
  • 注册公司流程需要多久泉州seo培训
  • 整合营销英文seo优化需要做什么
  • 做百度网站需不需要备案搜索引擎优化需要多少钱