dreamno

导航

 
#!/bin/sh
wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64
chmod 755 ./ossutil64


#!/bin/sh
## 设置oss 变量配置
OSS_REGION="oss-cn-shenzhen"
OSS_PROVIDER="oss"
OSS_ACCESS_KEY_SECRET="11"
OSS_HOST="2222.oss-cn-shenzhen.aliyuncs.com"
OSS_ACCESS_KEY_ID="3333"
OSS_ACCESS_KEY="4444"
OSS_ENDPOINT="http://oss-cn-shenzhen.aliyuncs.com"
OSS_STORE_DIR="5555"
OSS_BUCKET="6666-uat"
OSS_ACCESS_SECRET="7777"

./ossutil64 config -c /root/.ossutilconfig -e $OSS_ENDPOINT -i $OSS_ACCESS_KEY_ID -k $OSS_ACCESS_KEY_SECRET -L CH

./ossutil64 cp $1 oss://$OSS_BUCKET/upload/files$1
printf "文件下载路径:https://"$OSS_BUCKET"."$OSS_REGION".aliyuncs.com/upload/files"$1"\n"


# language=EN
#### endpoint=http://oss-cn-shenzhen.aliyuncs.com
#### accessKeyID=1111
#### accessKeySecret=2222

posted on 2021-11-12 21:09  dreamno  阅读(120)  评论(0编辑  收藏  举报