最新消息:本站所有跳转向bbs.ykit.cn的附件将全面停止,附件已转移到https://www.qingsj.com

Centos多线程Axel工具介绍及安装

Linux经验 有客 828浏览 0评论

基于Linux VPS运行WordPress,很多站长几乎都会首选Centos系统,原因很简单开源、安全、稳健;
一般在VPS上远程下载文件的时候经常会用Wget命令,这是基于单线程下载模式;
那么在下载大文件或者网络环境不是很好想要下载速度快些的话就需要用到多线程工具,像电脑本地用IE下载速度不理想的时候,启动多线程下载工具速度很容易得到质的提升;
同样使用Centos系统下载文件时也可以用到多线程技术来提升速度,方案有不少这里分享Axel多线程下载方案;

一、首先确定一下Centos版本:

查询命令:cat /etc/redhat-release

二、下载axel插件的rpm包

Axel下载地址 http://pkgs.repoforge.org/axel/

比如我的系统是Centos 6.5  32位系统,那么就在下载地址列表中找到相对应得版本复制下载地址;

wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el6.rf.i686.rpm 
rpm -ivh  axel-2.4-1.el6.rf.i686.rpm

附加上64位下载安装命令

wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el6.rf.x86_64.rpm
rpm -ivh axel-2.4-1.el5.rf.x86_64.rpm

 下面是自己手上一台VPS安装执行记录过程

Connecting to 23.88.247.132:22…
Connection established.
To escape to local shell, press ‘Ctrl+Alt+]’.
 
Last login: Wed Dec 3 01:50:46 2014 from 222.***.209.2*2
[root@5yun.org ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@5yun.org ~]# wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el6.rf.i686.rpm
–2014-12-03 02:18:01– http://pkgs.repoforge.org/axel/axel-2.4-1.el6.rf.i686.rpm
Resolving pkgs.repoforge.org… 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 302 Found
Location: http://rpmforge.sw.be/redhat/el6/en/i386/rpmforge/RPMS/axel-2.4-1.el6.rf.i686.rpm [following]
–2014-12-03 02:18:02– http://rpmforge.sw.be/redhat/el6/en/i386/rpmforge/RPMS/axel-2.4-1.el6.rf.i686.rpm
Resolving rpmforge.sw.be… 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el6/en/i386/rpmforge/RPMS/axel-2.4-1.el6.rf.i686.rpm [following]
–2014-12-03 02:18:02– http://tree.repoforge.org/redhat/el6/en/i386/rpmforge/RPMS/axel-2.4-1.el6.rf.i686.rpm
Resolving tree.repoforge.org… 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/axel-2.4-1.el6.rf.i686.rpm [following]
–2014-12-03 02:18:03– http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/axel-2.4-1.el6.rf.i686.rpm
Resolving apt.sw.be… 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 48928 (48K) [application/x-redhat-package-manager]
Saving to: `axel-2.4-1.el6.rf.i686.rpm’
 
100%[========================================>] 48,928 80.9K/s in 0.6s
 
2014-12-03 02:18:04 (80.9 KB/s) – `axel-2.4-1.el6.rf.i686.rpm’ saved [48928/48928]
 
[root@5yun.org ~]# rpm -ivh axel-2.4-1.el6.rf.i686.rpm
warning: axel-2.4-1.el6.rf.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing… ########################################### [100%]
1:axel ########################################### [100%]
[root@5yun.org ~]#

详细使用方法请看《Axel多线程下载使用参数

转载请注明:有客帮 » Centos多线程Axel工具介绍及安装

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址