synchronization
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2025-08-25 15:57:40 +08:00
commit cee91802b3
106 changed files with 9124 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
> 本文作者:丁辉
# OSS-Ossutil64工具使用
## 安装 Ossutil64 工具
[下载地址](https://github.com/aliyun/ossutil/releases)
[使用文档](https://help.aliyun.com/zh/oss/developer-reference/configure-ossutil)
**下载并安装**
```bash
curl https://gosspublic.alicdn.com/ossutil/install.sh | bash
```
## 配置 Ossutil64
[Endpoint对照表](https://help.aliyun.com/zh/oss/user-guide/regions-and-endpoints)
**配置 Ossutil64**
```bash
./ossutil64 config
```
> 配置格式
>
> ```bash
> The command creates a configuration file and stores credentials.
>
> # 指定配置文件的名称、路径(默认为 /root/.ossutilconfig按回车键将使用默
> Please enter the config file name,the file name can include path(default /root/.ossutilconfig, carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands):
> No config file entered, will use the default config file /root/.ossutilconfig
>
> For the following settings, carriage return means skip the configuration. Please try "help config" to see the meaning of the settings
> # 配置语言(默认为 EN)。
> Please enter language(CH/EN, default is:EN, the configuration will go into effect after the command successfully executed):
> # STS 令牌Security Token Service Token用于临时授权访问阿里云资源。
> Please enter stsToken:
> # Access Key Secret是用于对称加密算法的密钥用于验证身份和进行访问控制。
> Please enter accessKeySecret:
> # 终端节点,通常指特定网络服务的网络地址,用于指示客户端如何连接到服务。
> Please enter endpoint:
> # Access Key ID用于标识阿里云账户或子账户的访问密钥。
> Please enter accessKeyID:
> ```
## Ossutil64 使用基础命令
- 查看桶文件
```bash
ossutil64 ls oss://
```
- 创建存储桶
```bash
ossutil64 mb oss://<桶>
```
- 拷贝文件
```bash
./ossutil64 cp ./<本地文件> oss://<桶>/
```