mwget,多线程wget下载
1. 安装准备,因为要编译,所以环境要完整才不会报错。
yum install gcc gcc-c++ openssl-devel
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" 看见以上既是安装完成 - 或者直接安装编译好的版本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 # 安装完成后重新编译即可
4. mwget使用
# mwget [URL] // 默认开4个线程
# mwget -n 10 [URL] // 10个线程下载
本文介绍了如何在Linux环境中安装mwget,包括安装依赖、编译源码以及解决intltool版本问题。此外,还展示了mwget的基本用法,如设置下载线程数量。
785

被折叠的 条评论
为什么被折叠?



