码迷,mamicode.com
首页 > Web开发 > 详细

七牛上传操作

时间:2017-12-03 00:33:26      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:资源   chmod   evel   develop   1.5   帐号   meta   cal   nbsp   

下载qshell

wget -c https://dn-devtools.qbox.me/2.1.5/qshell-linux-x64

设置执行权限和配置环境变量

  1. $ mv qshell-linux-x64 qshell
  2. $ chmod +x qshell
  3. mv qshell /usr/bin/

配置帐号

查看KEY  https://portal.qiniu.com/user/key

qshell account <Your AccessKey> <Your SecretKey>

查看设置好的帐号信息

qshell account

编写同步目录配置文件

 cat upload.conf

  1. {
  2. "src_dir" : "/home/boponik/XBOX",
  3. "bucket" : "xbox"
  4. "file_list" : "<FileList>
  5. }

 

  其中xbox为存储空间名

文件列表的生成

qshell dircache <DirCacheRootPath> <DirCacheResultFile> 

同步资源

qshell qupload [<ThreadCount>] <LocalUploadConfig>

 

ref:

1 https://developer.qiniu.com/kodo/tools/1302/qshell

2 https://developer.qiniu.com/kodo/kb/1685/using-qshell-synchronize-directories

3 https://github.com/qiniu/qshell/blob/master/docs/dircache.md

 

七牛上传操作

标签:资源   chmod   evel   develop   1.5   帐号   meta   cal   nbsp   

原文地址:http://www.cnblogs.com/jack2zhang/p/7955973.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!