位置: IT常识 - 正文

Linux下多线程下载工具MWget和Axel使用介绍(linux多线程运行)

编辑:rootadmin
这篇文章主要介绍了Linux下多线程下载工具mwget和Axel的使用,都是基于命令行进行操作,需要的朋友可以参考下... 15-12-27

推荐整理分享Linux下多线程下载工具MWget和Axel使用介绍(linux多线程运行),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:linux多线程运行程序,linux多线程并发的处理方式,linux多线程并发的处理方式,linux多线程运行程序,linux 多线程 多进程,linux 多线程 多进程,linux多线程编程实例,linux多线程运行程序,内容如对您有帮助,希望把文章链接给更多的朋友!

linux运维在操作linux过程中,用得最多的linux下载工具想必一定是wget,没有看到哪一台服务器没装过wget的,或许有人使用ftp下载,也有人使用多线程的axel以及ProZilla,毫无疑问这两个工具都非常的出色,但是对于习惯使用wget的人来说显得不适应,于是老外便开发了多线程版本的wget工具mwget,m表示multi多线程的意思.mwget官方地址:http://sourceforge.net/projects/kmphpfm/?source=dlp

代码如下:# cd /usr/local/src/# wget http://jaist.dl.sourceforge.net/project/kmphpfm/mwget/0.1/mwget_0.1.0.orig.tar.bz2# tar -xjvf mwget_0.1.0.orig.tar.bz2# cd mwget_0.1.0.orig# ./configure# make# make install

configure过程中如果出现如下错误,请安装大于等于0.35版本的intltool

代码如下:checking for intltool >= 0.35.0... ./configure: line 6824: intltool-update: command not found foundconfigure: error: Your intltool is too old. You need intltool 0.35.0 or later.# yum install intltool

wget vs mwget速度测试以下使用下载2.4.5版本的mongodb来取样.mwget速度测试

代码如下:# mwget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.5.tgzBegin to download: mongodb-linux-x86_64-2.4.5.tgzFileSize: 90M 36% [====> =====> ===> ====> ] [ 33M] [2.0M/s] [ETA:00:28]

mwget速度截图如下:

wget速度测试

代码如下:# wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.5.tgz--2013-08-16 10:55:23-- http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.5.tgzResolving fastdl.mongodb.org... 54.230.114.206, 54.230.113.36, 54.230.114.144, ...Connecting to fastdl.mongodb.org|54.230.114.206|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 94827295 (90M) [application/x-tar]Saving to: “mongodb-linux-x86_64-2.4.5.tgz.1”

6% [==> ] 6,470,547 210K/s eta 6m 26s

wget速度截图如下

mwget用法:

代码如下:# mwget -hGNU MWget 0.1.0 ,a non-interactive and multiline network retriever of all POSTIX Systems.Usage: mwget [Options]... [URL]...Options: -b, --debug Show the debug message -c, --count=num Set the retry count to [num], no limit when "0", the default is "99" -d, --directory=dir Set the local direcotry to [dir], the default is "." -f, --file=file Rename the file to [file] -h, --help A brief summary of all the options -i, --interval=num Set the ftp retry interval to [num] seconds, the default is "5" -n, --number=num Use [num] connections instead of the default (4) -r, --referer=URL Include `Referer: [URL]' header in HTTP request. -t, --timeout=num Set the connection timeout to [num] seconds, the default is "30" -v, --version Show the version of the mwget and exit -x, --proxy=URL Set the proxy [URL] Linux下多线程下载工具MWget和Axel使用介绍(linux多线程运行)

Mail bug reports and suggestions to <sa@kmlinux.tk><xiao_suo@hotmail.com>On website bug reports and suggestions to <http://mwget.sourceforge.net/> <http://www.kmlinux.tk/>We Welcome your BUG REPORT!

Axel 运维工作中,常常需要下载文件,因为网站下载速度限制或者网络等原因导致下载让人无法忍受,前面有介绍多线程wget工具mwget,提速不少,而且使用很简单。axel使用的人更多,不仅仅安装方法简单,命令更简单。往下看。安装AxelRPM安装Axel(方法一)下载地址:http://pkgs.repoforge.org/axel/如图,选择适合你服务器的RPM

代码如下:root@ttlsa # wget http://pkgs.repoforge.org/axel/axel-2.4-1.el6.rf.x86_64.rpmroot@ttlsa # rpm -ivh axel-2.4-1.el6.rf.x86_64.rpm Preparing... ########################################### [100%] 1:axel ########################################### [100%]

yum安装Axel(方法二)

代码如下:root@ttlsa # yum install axel

apt-get安装Axel如果你是Ubuntu系统

代码如下:root@ttlsa # axel -hUsage: axel [options] url1 [url2] [url...]

--max-speed=x -s x 最大速度 (字节/秒)--num-connections=x -n x 最大连接数--output=f -o f 指定文件名--search[=x] -S [x] Search for mirrors and download from x servers--header=x -H x 添加header--user-agent=x -U x 设置用户代理--no-proxy -N 不使用任何代理--quiet -q Leave stdout alone--verbose -v 显示更多状态信息--alternate -a 显示简单进度条--help -h 帮助--version -V 版本信息axel使用实例下载centos

代码如下:root@ttlsa # axel http://mirrors.btte.net/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso[ 1%] .......... .......... .......... .......... .......... [4654.5KB/s][ 1%] .......... .......... .......... .......... .......... [4657.1KB/s][ 1%] .......... .......... .......... .......... .......... [4656.5KB/s][ 1%] .......... .......... .......... .......... .......... [4659.3KB/s]

下载运维生存时间某图片

代码如下:root@ttlsa # axel http://www.ttlsa.com/wp-content/uploads/2014/04/<a href="http://www.ttlsa.com/monitor/zabbix/" title="zabbix"target="_blank">zabbix</a>-adduser-01.jpgInitializing download: https://www.yuucn.com/wp-content/uploads/2022/04/1650720329-ab5ed26214430be.jpgFile size: 73009 bytesOpening output file zabbix-adduser-01.jpgStarting download</p><p>root@ttlsa # axel https://www.yuucn.com/wp-content/uploads/2022/04/1650720329-ab5ed26214430be.jpgInitializing download: https://www.yuucn.com/wp-content/uploads/2022/04/1650720329-ab5ed26214430be.jpgFile size: 73009 bytesOpening output file zabbix-adduser-01.jpgStarting download

[ 0%] .......... .......... .......... .......... .......... [ 598.0KB/s][ 70%] .......... .......... .Connection 0 finished

Downloaded 71.3 kilobytes in 0 seconds. (710.02 KB/s)

简单进度条默认情况下,整个屏幕都是进度条,加上-a参数,进度条类似wget。

代码如下:root@ttlsa # axel -a http://mirrors.btte.net/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso Initializing download: http://mirrors.btte.net/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.isoFile size: 4467982336 bytesOpening output file CentOS-6.5-x86_64-bin-DVD1.isoStarting download</p><p>[ 1%] [0 1 2 3 ] [ 3.2MB/s] [21:47]

下载限速ttlsa的网站带宽有限制,我要保证下载的同时又不影响用户的访问,例如限制为1MB/s的下载速度,如下可以看到速度基本保证在1MB以内。

代码如下:root@ttlsa # axel -s 1024000 http://mirrors.btte.net/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso Initializing download: http://mirrors.btte.net/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.isoFile size: 4467982336 bytesOpening output file CentOS-6.5-x86_64-bin-DVD1.isoState file found: 30522952 bytes downloaded, 4437459384 to go.Starting download

,,,,,,,... .......... .......... .......... .......... [ 394.8KB/s][ 0%] .......... .......... .......... .......... .......... [ 689.2KB/s][ 0%] .......... .......... .......... .......... .......... [ 879.5KB/s][ 0%] .......... .......... .......... .......... .......... [ 974.5KB/s][ 0%] .......... .......... .......... .......... .......... [1086.4KB/s][ 0%] .......... .......... .......... .......... .......... [ 967.5KB/s][ 0%] .......... .......... .......... .......... .......... [ 943.8KB/s][ 0%] .......... .......... .......... .......... .......... [1021.0KB/s][ 0%] .......... .......... .......... .......... .......... [1066.1KB/s]

最后完成,方法很简单,功能很简单。运维生存时间的服务器以及安装了axel,你的安装了吗?

本文链接地址:https://www.jiuchutong.com/zhishi/268583.html 转载请保留说明!

上一篇:TP-Link TL-WR841N管理员密码(初始密码)是多少

下一篇:鸿蒙超级终端搜索不到设备怎么办? 超级终端支持设备清单(鸿蒙超级终端搜不到)

  • 装卸费属于什么费用
  • 什么是价税分离的原因
  • 小规模纳税人加油发票可以抵扣吗
  • 增值税延期滞纳金是多少
  • 什么不属于损益类的会计项目
  • 收客户款现金折让发票怎么处理
  • 亏损 纳税
  • 个体工商户核定应税所得率
  • 营改增后个人所得税计税依据实例
  • 融资租入固定资产属于资产吗
  • 支付外聘老师的培训费
  • 工业企业购买电机会计分录
  • 哪些票据可以挂公司名下
  • 金税三期的变化
  • 收取的职工房租如何入账
  • 土地增值税纳税地点
  • 公司注销地税时其他应收款要缴纳个人所得税吗?
  • 金税三期理解
  • 公司投资理财需要纳税吗
  • 工程建设劳务费怎么算
  • 无形资产研发支出适用于税前加计扣除的政策
  • 怎么确认投资性资金
  • 公允价值变动损益怎么算出来的
  • 宏基aspire v5-573g怎样加运行内存
  • 银行初级证书全称
  • 接待客人后的感受和过程
  • php mktime函数
  • linux系统中安装web服务
  • 交易性金融资产的入账价值
  • 鸿蒙系统怎么退出开发者选项
  • 库存现金盘亏盘盈的原因
  • vue ui怎么用
  • vue.config.js 中 devServer.proxy 配置说明,以及配置正确不生效问题
  • php闭包和回调函数
  • 公允模式投资性房地产出售
  • vue的路由实现
  • laravel 5.1下php artisan migrate的使用注意事项总结
  • phpwechat
  • php zend原理
  • 深度学习:图像去雨网络实现Pytorch (二)一个简单实用的基准模型(PreNet)实现
  • fmt println
  • 旅行发票可以做账吗
  • 公司开具了电子发票
  • 个人所得税申报方式选哪个比较好
  • 如何设置linux
  • 帝国cms首页怎么打开
  • 冲以前年度管理费用
  • 融资租赁手续费一次性还是摊销
  • 所得税做账是否需要发票
  • 固定资产补入账和补提折旧
  • 小规模纳税人开专票税率是1%还是3%
  • 损益类账户怎么记入总账
  • 企业如何在没有税务登记
  • 购买土地需要缴纳哪些费用
  • 专票已认证但又不能抵扣
  • 对方开商业承兑汇票给我们
  • 如何登录网络?
  • 为什么需要会计信息
  • 私营公司固定资产怎么查
  • mysql判断字符长度
  • mysql的多表查询语句
  • linux 二进制转十六进制
  • xp系统开机一直在启动界面
  • winxp注销快捷键
  • win7切换输入法的快捷键怎么设置
  • linux 桌面系统
  • linux find命令详解xargs
  • win7 64位旗舰版如何实现快速删除U盘?win7快速删除U盘的设置方法
  • win10开始菜单怎么打开
  • el-menu-item
  • xcode的bundle identifier修改
  • 轻松掌握瓷砖铺贴技术 pdf
  • 阿里云云服务器ecs位于云端
  • 自动返回主页
  • shell去重计数
  • Unity3D Vuforia Android 拨打电话
  • 下拉列表框模糊匹配
  • 广州税务局前局长是谁
  • 票据贴现的票据是什么
  • 出口退税申报已通过,又被删除,报关单号能用吗
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设