目的
Linux服务器通过AWS命令行上传文件至S3。

 

连接你的Linux服务器,按照以下步骤操作。

# 安装pip 

yum -y install python-pip 
  
# 安装awscli 
pip install awscli 
  
# 初始化配置 

> aws configure

AWS Access Key ID [None]:
AWS Secret Access Key [None]:
Default region name [None]:
Default output format [None]:

 

上传操作命令:

查看某一服务器下内容
> aws s3 ls s3://***/
复制单个文件到aws上去
> aws s3 cp ./*** s3://***/***
复制一个目录中的内容到aws上去
> aws s3 sync d:/test s3://***/***/



相关文章:

  • 2022-01-15
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-11-25
猜你喜欢
  • 2021-09-23
  • 2020-04-27
  • 2021-12-22
  • 2021-08-04
  • 2021-05-14
  • 2019-07-16
  • 2021-08-01
相关资源
相似解决方案