Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
PCL_CB2_fandd 6883256d67 | 3 months ago | |
---|---|---|
README.md | 3 months ago |
记录鹏城云脑II使用,本人经验有限,下面的描述可能存在错误,仅供大家参考。欢迎大家一起贡献~
obs全称为对象存储服务(Object Storage Service),是华为云提供的云存储服务,主要特点是容量大,上传下载网速快(在PCL内部上传下载能达到100MB/s的速度)。
下面记录obs的linux客户端使用和配置:
下载地址,大家根据自己的操作系统和CPU类型来选择对应的版本,我这里是X86的CPU,所以选取这个链接obsutil_linux_amd64;(PS:可以直接右键复制下载链接,然后通过wget直接获取文件)
下载下来后,解压安装包,然后利用自带的setup.sh来配置obsutils;
tar zxvf obsutil_linux_amd64.tar.gz
cd obsutil_linux_amd64_5.5.12
mkdir ~/bin
cp obsutil ~/bin
# 将路径~/bin/添加到PATH环境变量中
export PATH=~/bin:$PATH
接下来是配置obsutil:
obsutil config # 终端将会打印obsutil配置文件的路径
# 主要配置前面3项:
# endpoint=https://obs.cn-south-222.ai.pcl.cn # 这个照抄
# ak=*******AK here******* # 这个AK和下一个SK需要在云脑II的账号,依次选择 个人中心 -> 个人设置->管理访问密钥 中新增,[链接](https://console.cloudbrain2.pcl.ac.cn/motenantconsolehomewebsite/#/userCenter/manager/userSetting)
# sk=*******SK here*******
配置好上面的选项后,就可以直接访问obs上面的文件了,下面是一些基本操作:
# 查看指定目录下面的文件夹
obsutil ls -d obs://fdd
# 查看指定目录下面的所有文件
obsutil ls obs://fdd
# 上传文件
./obsutil cp test.txt obs://fdd/test.txt
# 上传文件夹
./obsutil cp -r -f test_dir obs://fdd/test_dir
# 下载文件/文件夹
./obsutil cp obs://fdd/test/ test
# 新建文件夹
obsutil mkdir obs://fdd/projects
# 同文件复制
./obsutil cp obs://bucket-src/test1.txt obs://bucket-dest
对了,obs还有一个windows的GUI客户端,使用起来更为方便。下载链接如下:https://support.huaweicloud.com/browsertg-obs/obs_03_1003.html
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》