# 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 & ```