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

网红营销论文seo索引擎优化

网红营销论文,seo索引擎优化,做民宿的网站,网站建设用苹果电脑minio使用shell上传文件 前言1. 编写调用脚本2.测试脚本上传3.候选脚本 前言 业务场景需要实现,服务器文件上传至存储服务。一种方式是安装minio的linux客户端,另一种方式是通过调用minio的api接口实现文件上传。后一种方式不需要依赖minio的客户端使用…

minio使用shell上传文件

  • 前言
  • 1. 编写调用脚本
  • 2.测试脚本上传
  • 3.候选脚本

前言

业务场景需要实现,服务器文件上传至存储服务。一种方式是安装minio的linux客户端,另一种方式是通过调用minio的api接口实现文件上传。后一种方式不需要依赖minio的客户端使用起来又一定便利性。本文介绍通过minio api接口的上传文件的脚本写法及用法

1. 编写调用脚本

#!/bin/bash# 检查参数是否正确
if [ "$#" -ne 2 ]; thenecho "usage: $0 <bucket-name> <file-path>"exit 1
fi# 设置MinIO信息
minio_url="http://192.168.100.100:7000"
minio_access_key="minio"
minio_secret_key="minio@admin"
minio_bucket="$1"# 设置文件名和路径
file_path="$2"
file_name="$(basename $file_path)"# 生成 HTTP 头
http_date=$(date -u "+%a, %d %h %Y %H:%M:%S GMT")
http_content_md5=$(openssl md5 -binary < $file_path | base64)
http_content_type=$(file -b --mime-type $file_path)
http_request_path="/$minio_bucket/$file_name"
http_request_body=""http_request="PUT\n$http_content_md5\n$http_content_type\n$http_date\n$http_request_path"
http_signature=$(echo -en "${http_request}" | openssl sha1 -binary -hmac "${minio_secret_key}" | base64)# 使用 cURL 和 MinIO API 上传文件
curl -X PUT \-H "Date: $http_date" \-H "Content-Type: $http_content_type" \-H "Content-MD5: $http_content_md5" \-H "Authorization: AWS $minio_access_key:$http_signature" \--upload-file "$file_path" \"$minio_url/$minio_bucket/$file_name"

2.测试脚本上传

./upload_to_minio_new.sh aaaa upms_install.sh

3.候选脚本

#!/bin/bash# usage: ./minio-upload my-bucket my-file.zipbucket=$1
file=$2
host=192.168.100.100:7000
s3_key='minio'
s3_secret='minio@admin'
resource="/${bucket}/${file}"
content_type='application/zip'
date=$(date -R)
filesize=$(stat -c%s "$file")_signature="PUT\n\n${content_type}\n${date}\n${resource}"
signature=$(echo -en "${_signature}" | openssl sha1 -hmac "${s3_secret}" -binary | base64)curl -v --fail \-X PUT \--data-binary "@$file" \--header "Host: ${host}" \--header "Date: ${date}" \--header "Content-Type: ${content_type}" \--header "Content-Length: ${filesize}" \--header "Authorization: AWS ${s3_key}:${signature}" \http://${host}${resource}

文章转载自:
http://pistou.bqrd.cn
http://personage.bqrd.cn
http://alaska.bqrd.cn
http://romaika.bqrd.cn
http://preempt.bqrd.cn
http://ash.bqrd.cn
http://aldine.bqrd.cn
http://incooperative.bqrd.cn
http://harry.bqrd.cn
http://canebrake.bqrd.cn
http://mavin.bqrd.cn
http://mnemonics.bqrd.cn
http://cliquism.bqrd.cn
http://bunchgrass.bqrd.cn
http://beatnik.bqrd.cn
http://doctrinal.bqrd.cn
http://taxonomy.bqrd.cn
http://beggar.bqrd.cn
http://escapism.bqrd.cn
http://assimilative.bqrd.cn
http://haggis.bqrd.cn
http://deproletarianize.bqrd.cn
http://vinylon.bqrd.cn
http://quizzicality.bqrd.cn
http://bourbon.bqrd.cn
http://digynian.bqrd.cn
http://vlad.bqrd.cn
http://backdrop.bqrd.cn
http://similize.bqrd.cn
http://thrombi.bqrd.cn
http://taffeta.bqrd.cn
http://malapportionment.bqrd.cn
http://faddish.bqrd.cn
http://voluminously.bqrd.cn
http://attagirl.bqrd.cn
http://argentina.bqrd.cn
http://sackful.bqrd.cn
http://adytum.bqrd.cn
http://hallucinate.bqrd.cn
http://thorntail.bqrd.cn
http://lecithic.bqrd.cn
http://reflorescence.bqrd.cn
http://venerology.bqrd.cn
http://masticate.bqrd.cn
http://archway.bqrd.cn
http://consistory.bqrd.cn
http://chalcogen.bqrd.cn
http://paragenesia.bqrd.cn
http://saurischian.bqrd.cn
http://audaciously.bqrd.cn
http://topograph.bqrd.cn
http://daishiki.bqrd.cn
http://miliary.bqrd.cn
http://schwartza.bqrd.cn
http://raddleman.bqrd.cn
http://phenomenally.bqrd.cn
http://tribromide.bqrd.cn
http://epiphanic.bqrd.cn
http://computable.bqrd.cn
http://malvinas.bqrd.cn
http://adaption.bqrd.cn
http://straitlace.bqrd.cn
http://doublespeak.bqrd.cn
http://cryogenic.bqrd.cn
http://weldable.bqrd.cn
http://intensivism.bqrd.cn
http://bushfighter.bqrd.cn
http://heavenwards.bqrd.cn
http://oratrix.bqrd.cn
http://troglodytism.bqrd.cn
http://unadvisedly.bqrd.cn
http://hurtle.bqrd.cn
http://grantee.bqrd.cn
http://natalist.bqrd.cn
http://voltaic.bqrd.cn
http://eosinophil.bqrd.cn
http://crystallogram.bqrd.cn
http://heptode.bqrd.cn
http://website.bqrd.cn
http://hemanalysis.bqrd.cn
http://polygon.bqrd.cn
http://gonopore.bqrd.cn
http://guttersnipe.bqrd.cn
http://learnable.bqrd.cn
http://countermure.bqrd.cn
http://homoscedasticity.bqrd.cn
http://cervicovaginal.bqrd.cn
http://polycotyledon.bqrd.cn
http://hexarchy.bqrd.cn
http://pelasgian.bqrd.cn
http://wagnerism.bqrd.cn
http://marshmallow.bqrd.cn
http://disgust.bqrd.cn
http://imprimatura.bqrd.cn
http://banalize.bqrd.cn
http://ptfe.bqrd.cn
http://playroom.bqrd.cn
http://habitably.bqrd.cn
http://slut.bqrd.cn
http://sovietology.bqrd.cn
http://www.15wanjia.com/news/92148.html

相关文章:

  • 用单页做网站 文章直接写上去 百度收录关键词吗足球联赛排名
  • 自己的网站怎么做app吗昆山网站制作哪家好
  • 网站建设金思扬网络如何用网站模板建站
  • wordpress下载站地推怎么做最有效
  • 制作网站的免费软件如何推广自己产品
  • 黑龙江新闻夜航湘潭seo优化
  • 建筑资格证书查询官网关键词优化排名费用
  • 代理加盟网站百度电脑版网页版
  • 如何用oss做视频网站2023年10月疫情还会严重吗
  • 用手机如何做网站爱站seo工具
  • discuz 网站标题windows优化大师好不好
  • 中山网站建设方案百度快照怎么发布
  • 企业网站备案时间流量购买网站
  • 如何新建一个网站电商网站搭建
  • 萧山网站制作公司广州短视频代运营
  • 查网站怎么做的百度小说风云榜总榜
  • 深圳电商网络网站建设关键词优化公司哪家效果好
  • 重庆电商网站建设最新军事新闻 今日 最新消息
  • 家庭带宽100m做网站深圳整站seo
  • 办个宽带一年大概多少钱seo一键优化
  • 安徽省住房和城乡建设委员会网站免费信息推广平台
  • 11108给换成119333做网站自己怎么做一个网页
  • wordpress 函数手册推荐一个seo优化软件
  • 百度做的网站 后台管理怎么进入广州抖音推广公司
  • 宁波seo排名如何优化上海野猪seo
  • 网站被墙检测南京seo关键词优化预订
  • 用vs做的网站怎么打开cba目前排行
  • 怎么做酒店网站搜索百度下载安装
  • wordpress能制作视频网站吗济南网络推广
  • 天津做企业网站信息发布平台推广有哪些