文章目录[隐藏]
一、简介
说实话我实在不想写什么简介,具体看图吧。(挂载了Gdrive)
离线下载你还在用贵的要死的大盘鸡吗?一个网盘即可解决。
写这个教程真不容易。。。
提醒:小鸡需要FUSE(KVM本身就有可无视)OVZ一般不开,需要发工单,客服给不给就不知道了
一、安装LNMP环境
1、看自己喜好!我喜欢用Oneinstack
yum -y install wget screen curl python #for CentOS/Redhat # apt-get -y install wget screen curl python #for Debian/Ubuntu wget http://aliyun-oss.linuxeye.com/oneinstack-full.tar.gz #阿里云经典网络下载 wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz #包含源码,国内外均可下载 wget http://mirrors.linuxeye.com/oneinstack.tar.gz #不包含源码,建议仅国外主机下载 tar xzf oneinstack-full.tar.gz cd oneinstack #如果需要修改目录(安装、数据存储、Nginx日志),请修改options.conf文件 screen -S oneinstack #如果网路出现中断,可以执行命令`screen -R oneinstack`重新连接安装窗口 ./install.sh #注:请勿sh install.sh或者bash install.sh这样执行
2、以Oneinstack为例,设置主页。
vim /usr/local/nginx/conf/vhost/xx.xx.conf
将 index 行增加一条记录_h5ai/public/index.php (放在最后即可),修改之后的行应该是这个样子。
index index.html index.htm index.php /_h5ai/public/index.php;
二、挂载网盘
1、WEBDAV
以TransIP为例。注意挂载目录换成你域名所绑定的目录
可参考
TransIP(WEBDAV)免费1T网盘申请及挂载Windows/Linux教程
apt-get install davfs2 fuse mkdir /mnt/webdav mount -t davfs https://cokemine.stackstorage.com/remote.php/webdav/ /mnt/webdav Please enter the username to authenticate with server https://cokemine.stackstorage.com/remote.php/webdav/ or hit enter for none. Username: test Please enter the password to authenticate user test with server https://cokemine.stackstorage.com/remote.php/webdav/ or hit enter for none. Password:
2、Gdrive等
第一种方法使用rclone
apt-get install fuse wget https://downloads.rclone.org/rclone-current-linux-amd64.zip unzip rclone-current-linux-amd64.zip chmod 0777 ./rclone-*/rclone cp ./rclone-*/rclone /usr/bin/ rm -rf ./rclone-*
配置
rclone config
输入n新建配置
输入名称,之后我们这里选择Gdrive即10(可能版本不同看清楚了)
三个全部空去不填
进入链接授权,输入所得授权码 最后依次n y
然后挂载(这里的ore 是上面的昵称,xx.xx是你的域名)
rclone mount ore: /data/wwwroot/xx.xx --allow-other --vfs-cache-mode writes --allow-non-empty &
第二种方法
Google-drive-ocamlfuse 不太建议。这里就不解释了。
三、安装Aria2
建议使用逗比大佬的脚本:https://doub.bid/shell-jc4/
wget -N --no-check-certificate https://softs.fun/Bash/aria2.sh && chmod +x aria2.sh && bash aria2.sh
安装完后 修改配置文件:/root/.aria2/aria2.conf 修改下载目录和密码。
然后重启
/etc/init.d/aria2 restart
四、装备AriaNg与H5ai
1、H5ai
下载地址:https://github.com/mayswind/AriaNg/releases/download/0.2.0/aria-ng-0.2.0.zip
建议解压后直接上传至网盘
2、AriaNg
逗比大佬的东西,具体安装使用方式见这里
五、总结
这样做还可以使网盘直连化,Gdrive免科学上网。
参考了梨园的好多文章,这里做了个整合。
这里用的Aria2安装脚本是逗比大佬的
这里用的Oneinstack,喜欢宝塔或者是军哥的Lnmp.org的自行尝试
1/27更新:
下载方法建议:https://www.cokemine.com/aria2_google2.html
直接下载到挂载目录有弊端
- Line 群组
- 阔乐博客 Line 群了解一下
-
- Telegram 群组
- Telegram 群组了解一下
-
2017年12月31日 下午5:14 1F
感谢大佬分享
2018年3月1日 上午1:16 2F
挂载rclone时,输入后, Failed to create file system for “ore:”: didn’t find section in config file
2018年3月1日 上午1:21 3F
rclone mount ppx: /www/data –allow-other &
用这个命令挂成了,PPX为自己起的配置文件名
2019年5月24日 下午10:37 4F
请教,直接下载到挂载目录完全不可行吗????我现在就是这样设置的,好像小文件可以,大文件就失败。。
2019年6月5日 下午3:23 B1
@ 大碗 直接下载到挂载目录是可行的。
但是会在本地保存缓存。
所以直接下载到挂载目录的话还是会先下载到本地的(所以说没法达到本地硬盘不够大文件下载空间直接下载)并且缓存不好清除
2019年12月13日 上午12:26 5F
大佬可否帮我弄一下,这个h5ai真的难弄
2021年8月11日 下午5:05 6F
有个疑问,如果我vps硬盘是10G,然后我要下一个20G的文件,我没有弄网站,直接rclone挂载了一个Google Drive到/home/gdrive,然后aria2下载目录是/root/downloads,可以直接下下来吗?
2021年8月11日 下午5:29 B1
@ Eutaboo 下载不下来。不管是直接下载到挂载目录,还是先下到本地在上传。都不行。如果是BT可以考虑分片下载
2021年8月11日 下午5:35 B2
@ CokeMine aira2可以实现分片下载吗?先下一部分,上传以后删除原有的,再下剩下的部分