2.0 KiB
2.0 KiB
本文作者:丁辉
OSS-Ossutil64工具使用
安装 Ossutil64 工具
下载并安装
curl https://gosspublic.alicdn.com/ossutil/install.sh | bash
配置 Ossutil64
配置 Ossutil64
./ossutil64 config
配置格式
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 使用基础命令
-
查看桶文件
ossutil64 ls oss://
-
创建存储桶
ossutil64 mb oss://<桶>
-
拷贝文件
./ossutil64 cp ./<本地文件> oss://<桶>/