https://blog.csdn.net/qq_41571224/article/details/122983330

在命令行输入命令:

aws configure

就可以进行初始化更换bucket,

 

然后输入id 和秘钥就可以了。

1.yum -y install python-pip
2.pip install awscli
3.aws configure(initailize configuration,input the aws access key)
AWS Access Key ID [None]:
AWS Secret Access Key [None]:
Default region name [None]:
Default output format [None]:
4.use command
aws s3 ls s3://xxx/
aws s3 cp s3://xxx/
aws s3 sync s3://xxx/