当前位置:   article > 正文

mwget,多线程wget下载_wget多线程下载

wget多线程下载

mwget,多线程wget下载

1. 安装准备,因为要编译,所以环境要完整才不会报错。

yum install gcc gcc-c++ openssl-devel
  • 1

2.下载及安装

  • 二进制安装
    # git clone https://github.com/rayylee/mwget.git
    # cd wget
    # ./configure
    # make && make install
    # mwget -v
    Mwget Version 0.2.0
    Machine Information of Mwget:
      Built time on: 2023-02-16 22:03:32
      C Compiler Version: "cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)"
      C++ Compiler Version: "c++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)"
      Built host type: "GNU/Linux x86_64"
      看见以上既是安装完成
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
  • 或者直接安装编译好的版本mwget · GitHub

3. 常见报错与解决

  • intltool版本太低
    #运行./configure时报错:
    ./configure: line 6865: intltool-update: command not found
    checking for intltool >= 0.35.0...  found
    configure: error: Your intltool is too old.  You need intltool 0.35.0 or later.
    #解决
    # yum -y install intltool
    # 安装完成后重新编译即可
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

4. mwget使用

# mwget [URL]          // 默认开4个线程
# mwget -n 10 [URL]    // 10个线程下载
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/256721
推荐阅读
相关标签
  

闽ICP备14008679号