阿里云部署oss,参照aliyun文档
vim aliyun-push-oss
#!/bin/bash
ENDPOINT="oss-cn-beijing.aliyuncs.com"
KEYIP="LTAI5tN54EyKZ9m9cruQ41bt"
KEYSECRET="O8MZWthpKQxerCyiU7Xx2pzWOnBT4i"
OOS='oss://alislx/'
wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64
chmod 777 ./ossutil64
./ossutil64
#配置配置文件可手动改,默认,
#endpoint:oss-cn-beijing.aliyuncs.com
#accessKeyID:LTAI5tN54EyKZ9m9cruQ41bt
#accessKeySecret:O8MZWthpKQxerCyiU7Xx2pzWOnBT4i
#stsToken:
./ossutil64 test.txt $OOS #上传
cat <<END >/root/.ossutilconfig
[Credentials]
language=CH
endpoint=${ENDPOINT}
accessKeyID=${KEYIP}
accessKeySecret=${KEYSECRET}
END
aliyun oss上传脚本
最新推荐文章于 2024-04-11 14:05:25 发布