您的位置:首页 > 其它

用axel和fastestmirror提高yum速度

2012-06-07 10:20 246 查看
PS:这篇文章是我2009-08-17在iteye.com上面写的,好几年没在上面写东西了,决定把上面为数不多的几篇博客搬到51cto上面来。

-------------------------------------------------------------------------------------------------

首先将/etc/yum.conf中的plugins设为1。

Axel是一个无依赖关系、轻量级的下载工具,它通过分段连结一个文件来加速HTTP/FTP下载速度,并可以为一个下载任务使用多个镜像。把它做为YUM的插件使用以提高YUM的下载速度。

从http://axel.alioth.debian.org/下载axel

安装axel

1. tar xzvf axel-xxx.tar.gz

2. cd axel-xxx

3. ./configure

4. make

5. make install

设定YUM 使用 AXEL:

将 axelget.conf 放置 /etc/yum/pluginconf.d/

#wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.conf -P /etc/yum/pluginconf.d/

将 axelget.py 放置 /usr/lib/yum-plugins/

#wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.py -P /usr/lib/yum-plugins/

fastestmirror插件是先根据ping值选择最快的镜像来下载文件。

yum install yum-plugin-fastestmirror
本文出自 “简单至上” 博客,请务必保留此出处http://root123.blog.51cto.com/3109439/890944
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: