You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
500 B
Markdown
28 lines
500 B
Markdown
# ali-oss
|
|
## 安装 ossutil
|
|
|
|
[文档地址](https://help.aliyun.com/zh/oss/developer-reference/configure-ossutil)
|
|
|
|
```shell
|
|
ossutil config
|
|
|
|
# stsToken: 空
|
|
# endpoint: oss-rg-china-mainland.aliyuncs.com
|
|
# accessKeyID:
|
|
# accessKeySecret:
|
|
```
|
|
## 配置环境变量
|
|
```
|
|
# ~/.bashrc
|
|
oss_root="oss://caoshd"
|
|
```
|
|
## 上传
|
|
```shell
|
|
filename=server_5.2.5.tar
|
|
nohup ossutil cp ${filename} ${oss_root} > oss.log 2>&1 &
|
|
```
|
|
|
|
## 下载
|
|
```shell
|
|
nohup ossutil cp ${oss_root}/${filename} ./ > oss.log 2>&1 &
|
|
``` |