位置: 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管理员密码(初始密码)是多少

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

  • 税务迁移麻烦吗
  • 汇算清缴时发现去年的成本少确认了报表怎么填列
  • 土建工程维修
  • 车辆维修费发票清单内容
  • 职工福利费允许结转以后年度扣除吗
  • 所得税不计提直接缴纳,年末一次性计提
  • 组织机构代码是营业执照哪几位数字
  • 个人取得哪项收入需要缴纳个人所得税
  • 关于合并商誉应该减值还是摊销的辩论
  • 上交的项目评审费如何做财务处理呢?
  • 零余额账户银行余额调节表
  • 年收入超过12万什么时候申报
  • 贸易公司给客户开发票
  • 劳务发票需要身份证原件吗
  • 一台电脑上能装多个金税盘吗?
  • 宜宾劳务公司有哪些
  • 小规模纳税人代理记账流程
  • 开票满500万一定会升一般纳税人吗
  • 新公司企业怎么注册
  • 销售的增长率公式是什么
  • 个体户核税怎么核
  • 资产总额从业人数
  • 国税地税纳税申报
  • 实收资本的账务处理例题
  • 对于长期没发票的预付款怎么处理?
  • 对公收到别人的转账怎么记账
  • 模具成本怎么核算
  • 车船税没有发票能进账吗
  • 前端生成pdf文件
  • 会计核算的方法主要有
  • laravel中的session有效期
  • php链式操作
  • 固定资产和无形资产计提折旧时间
  • 计提社保会计分录金额怎么写
  • 购买土地需要缴纳增值税吗
  • 电子税务局没有开票业务
  • 对公账户原路退回
  • 发现以前年度损益调整怎么记账
  • 厂房出租一年多少钱
  • 对企业来说什么是工匠精神
  • 定额发票验旧日期怎么算
  • 收到费用报销单据应该怎么记账?
  • 交强险必须要买驾乘险才能投保
  • sqlplus查询结果换行
  • 融资租赁的增值税专用发票可不可以抵扣
  • 欠供应商货款会坐牢吗
  • 材料会计的内容
  • 应收账款少收会计分录
  • 政府投资资产会计核算科目
  • 小微企业不用缴纳社保可以吗现在
  • 开红字发票购买方和销货方有哪些操作不同?
  • mysql分区分表原理
  • centos下虚拟机
  • win7系统怎么启动讲述人
  • winxp如何设置自动关机
  • linux链接分为什么和什么
  • gacrunner.exe是什么
  • 为避免10月20号后盗版系统出现黑屏的bat文件
  • linux中关闭系统命令
  • win7鼠标突然不能用了
  • 在ubuntu上安装apache
  • win 7电脑音箱没有声音
  • win7系统防火墙无法关闭
  • WIN10企业版安装NET3.5
  • 如何使用ai软件
  • nodejs connect
  • linux中sudo命令的使用方式和作用
  • jquery easyui从零开始学pdf
  • java script课程
  • Python遍历循环
  • 最简单手电筒
  • pytho命名规则
  • js数组操作的常用方法有哪些
  • 兖州宁德新能源官网首页
  • 对超市的建议和意见怎么写简短
  • 一般纳税人获得自产自销免税发票怎么处理
  • 新疆12366网上办税
  • 临时税务登记有效期怎么填
  • 烟叶收购价款
  • 2023个税税率及速算扣除数
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设