美文网首页遇见
AWS S3桶 使用方法和常用命令

AWS S3桶 使用方法和常用命令

作者: 庄宁文 | 来源:发表于2017-02-07 10:27 被阅读0次

安装aws管理工具 AWSCLI64(下载地址:http://pan.baidu.com/s/1bo9H0Hx

打开命令行工具cmd

初始化

aws configure

访问密钥 ID:

AKIAJQUJN4NOJZBIA5RA

私有访问密钥:

EucyMQA7KOv6dOcH5yKID9zi1L2xZgZnt8mRMxuz

region:

ap-southeast-1

output:

json

查看文件

aws s3 ls s3://xxx/

上传单个文件

aws s3 cp C:/Users/Administrator/Desktop/test.txt s3://xxx/

上传文件夹

aws s3 sync C:/Users/Administrator/Desktop/bbs s3://xxx/bbs --exclude *.tmp

删除文件夹

aws s3 rm s3://xxx/bbs/ --recursive

访问域名:http://xxx.cloudfront.net/

相关文章

网友评论

    本文标题:AWS S3桶 使用方法和常用命令

    本文链接:https://www.haomeiwen.com/subject/iwppittx.html