一、下载安装s3cmd
s3cmd download | SourceForge.net
前往下载最新版
下载后是一个tar包,需要解压::
tar -zxvf s3cmd-2.2.0.tar.gz
cd s3cmd-2.2.0
apt-get install python-setuptools
python setup.py install
s3cmd安装完毕。
二、配置s3cmd
s3cmd --configure
配置的各项细节参考了这篇文章:
ceph基础篇4——对象存储rgw的访问方式之S3cmd - 百度文库
New settings:
Access Key: xxxxxx
Secret Key: xxxxxxxx
Default Region: US
S3 Endpoint: 10.140.12.xxx
DNS-style bucket+hostname:port template for accessing a bucket: 10.1