s3cmd : Add a config parameter to enable path-style bucket access 当ceph rgw使用域名时,需要支持 path-style bucket特性

s3cmd 要是1.6.1 之后的版本

增加配置项: 

vi .s3cfg

use_path_mode = True

源码参考:

cat  /usr/local/lib/python2.7/dist-packages/S3/Config.py  

S3cmd的代码如下:

https://github.com/s3tools/s3cmd/pull/391/commits/8ace431ff094fd71dea53acaa2207c20f25a0154

原文地址:https://www.cnblogs.com/bodhitree/p/6370910.html