魔法系统之家下载 - 系统之家,XP系统之家,GhostXP系统,纯净版XP系统,Windows7下载之家

当前位置:首页 > 系统教程 > 服务器 > 详细页面

【转载】Google Drive利用google-drive-ocamlfuse和aria2实现离线下载功能

编辑:佚名 2021-06-04 16:14:50 来源于:魔法系统之家下载

本教程涉及命令较多,建议先浏览一遍再动手!

准备环境:

VPS一台。至少512M内存,硬盘要求不高,但是最好10G以上。本教程基于centos7,所以最好安装centos7系统!

 

大纲

1. centos 7安装google-drive-ocamlfuse
2. centos 7安装aria2
3. 配置google-drive-ocamlfuse和aria2

安装教程

1. centos 7安装google-drive-ocamlfuse

安装必要环境

yum install -y git

yum install -y hg

yum install sqlite-devel fuse fuse-devel libcurl-devel zlib-devel m4

安装opam

yum install ocaml ocamldoc ocaml-camlp4-devel

wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin/

yum install

安装google-drive-ocamlfuse

opam init

opam update

opam install depext

opam depext google-drive-ocamlfuse

opam install google-drive-ocamlfuse

测试是否安装成功:google-drive-ocamlfuse -help,如果出现帮助内容,说明安装成功。如果提示命令不存在,可以重启一下,再试试命令。

2. centos 7安装aria2

这里使用一键包安装,免去配置aria2的麻烦。

yum install git

git clone https://github.com/tangrela/aria2

cd aria2

chmod u+x *.sh && ./install_aria2.sh

根据提示输入用户名和密码即可。

3. 配置google-drive-ocamlfuse和aria2

配置google-drive-ocamlfuse需要获取google drive的api。请安装步骤一步一步走。

3.1 配置google-drive-ocamlfuse

获取Google Drive API

打开https://code.google.com/apis/console/
创建项目
Google Drive利用google-drive-ocamlfuse和aria2实现离线下载功能

建好项目,选择启用API和服务,搜索google driveGoogle Drive利用google-drive-ocamlfuse和aria2实现离线下载功能

启用api
Google Drive利用google-drive-ocamlfuse和aria2实现离线下载功能


分享到:

相关信息

热门资讯

频道热点资讯