编程语言/S3:修订间差异
来自康健生活
| 第311行: | 第311行: | ||
== s3cmd == | == s3cmd == | ||
=== 安装 === | |||
{{shc|<syntaxhighlight lang="bash"> | |||
pip3 install s3cmd</syntaxhighlight>|$|/home/kangkk}} | |||
=== 配置文件 === | |||
{{Hc|.s3cfg|<syntaxhighlight lang="javascript"> | |||
[default] | |||
access_key = <access_key> | |||
secret_key = <secret_key> | |||
bucket_location = <region> | |||
host_base = <endpoint> | |||
host_bucket = <endpoint> | |||
use_https = False | |||
human_readable_sizes = True | |||
website_index = index.html | |||
signature_v2 = True | |||
</syntaxhighlight>}} | |||
可简略为 | |||
{{Hc|.s3cfg|<syntaxhighlight lang="javascript"> | |||
[default] | |||
access_key = <access_key> | |||
secret_key = <secret_key> | |||
</syntaxhighlight>}} | |||
== 上传 == | == 上传 == | ||