先简单介绍下Aria2,这是一种离线下载工具,现在很多都用来离线下载百度云,115的资源。
也就意味着,这工具有众多版本。下面我介绍下利用服务器(Linux)来安装Aria2。
简单说说安装原因:
而一般个人购买的服务器基本都是G口以上,下载速度很理想,
所以就产生先把资源离线到服务器,在从本地去服务器下载这个方法,
很类似于迅雷的离线下载,先放在自己的服务器,再去取回来。
</span>
理解了原理之后,制作一个Aria服务器就不难了。废话不多,开工;
①.Debian系列服务器:
Debian8以上安装Aria2工具方法如下:(可全部将代码复制到终端执行)
apt-get -y install aria2 git #下载Aria2工具及git管理工具
iptables -I INPUT -p tcp -m tcp --dport 6800 -j ACCEPT
iptables-save #防火墙放行6800,Aria的默认端口并保存
aria2c --enable-rpc --rpc-listen-all -D #开始监听Aria的服务。
PS:需要注意的是,每次重启服务器都需要执行
来开启Aria2的服务,如果嫌麻烦,可以使用nohup等加入后台并设置开机启动,这不在主要范围,请自行研究。
就这么两行,就已经搭建好Aria服务器,管理的话,可以使用Windows客户端,也可以使用网页版
下面我说说网页版连接方法:
打开 http://4ker.cc/aria2
选择连接设置,在里面设置你的服务器ip和端口,端口默认即可。然后保存。
已经配置好Aria2,现在我们可以点击
来为服务器添加离线下载任务,当你设置完毕服务器之后,这里会出现磁力,种子等连接方式。
这样下载的时候,下载文件是存放在/root目录,对我们的下载带来很大的不便,所以我们有必要安装一个Apache或者Nginx目录,实现访问IP/文件 来下载文件,我们接着走:
service apache2 restart #重启一下Apache
这样,我们就可以把下载目录
设置在
里面,直接输入,IP/文件地址即可下载到本地。
基本设置Debian的Aria2服务器完成。
如果你不想使用我的Aria2,你想自己搭建一个,也是没问题的,接着看:
Aria2服务器也就是个html页面,你在apache目录安装一个,实现ip访问Aria2页面。
登陆服务器执行:
apt-get install -y git #安装git获取工具,上面安装过可以不装。
git clone http://github.com/ziahamza/webui-aria2 #git获取Aria2的html源码
cd webui-aria2 #进入目录
mv * /var/www/html #把目录内文件移动到Apache主目录
这样,我们打开服务器IP,即可出现Aria2的页面,甚至都不用自己设置IP和端口,可直接添加文件就下载了。
Aria2不止有Linux版本,还有Windows版本,下次在写Centos安装Aria2的时候我会介绍。
有任何问题,欢迎在下面留言讨论,Aria2的功能实在太强大。有人在路由器上安装Aria2来拖硬盘实现离线下载,感兴趣的,欢迎对Aria2深入研究。
Very nice post. I just stumbled upon your blog and
wanted to say that I have truly enjoyed browsing your blog posts.
In any case I’ll be subscribing to your feed and I hope you write
again very soon!
I suck it this time moving my head back
and forward under the weight of the joy i was feeling. Because of all you smart and helpful folks.
Thanks for finally talking about >Debian利用Aria2离线下载资源 – 刺客博客 <Loved it!
Loved the pictures, i really like the one of this image,
perfecto.
My brother suggested I may like this website.
He was totally right. This publish truly made my day.
You can not believe just how much time I had spent for this
info! Thank you!
You could definitely see your enthusiasm within the work you write.
The sector hopes for even more passionate writers like you who aren’t afraid to mention how they believe.
All the time go after your heart.
Hey there, You have performed an excellent job. I’ll certainly digg it and individually recommend to my
friends. I am confident they’ll be benefited from this site.
Hi there i am kavin, its my first occasion to commenting anywhere, when i read this piece
of writing i thought i could also create comment due to this sensible post.
Hello there, I found your blog via Google even as looking for
a comparable matter, your website got here up, it appears to be like great.
I’ve bookmarked it in my google bookmarks.
Hi there, just become aware of your blog thru Google,
and located that it is really informative. I am going to be careful for
brussels. I’ll appreciate in the event you continue this in future.
Numerous people can be benefited from your writing.
Cheers!
Hello, yup this paragraph is in fact fastidious and
I have learned lot of things from it concerning blogging.
thanks.
有LINUNX版本的吗
这个我以前用过,但是下载国内的资源不行,,,,
可以发个建博客的教程么
老司机必备技能