一、下载使用ossutil64
wget http://gosspublic.alicdn.com/ossutil/1.6.5/ossutil64
chmod +x ossutil64 /usr/bin/
mv ossutil64 /usr/bin/
ossutil64 config
vim /root/.ossutilconfig
[Credentials
]
language
=CH
endpoint
=oss-cn-hangzhou-internal.aliyuncs.com
accessKeyID
=
accessKeySecret
=
简单命令操作
ossutil64
ls
ossutil64
ls oss://devops/config/python/
ossutil64 -c /root/.ossutilconfig
cp oss://devops/config/test/deployment_web.yaml
.
ossutil64 -c /root/.ossutilconfig
cp deployment_web.yaml oss://devops/config/test/
根据oss上的目录在服务器上创建便于管理