Rocky8.7或者Centos8安装mwget
wget无法多线程下载,所以使用增强版的mwget
#!/bin/bash yum -y install gcc gcc-c++ make automake bzip2 openssl-devel intltool 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 # 非常重要的!!!!,必须修改源代码才可以编译通过 sed -i '23i #include <cstring>' /root/mwget_0.1.0.orig/src/httpplugin.cpp sed -i '22i #include <cstring>' /root/mwget_0.1.0.orig/src/ftpplugin.cpp sed -i '24i #include <cstring>' /root/mwget_0.1.0.orig/src/downloader.cpp cd mwget_0.1.0.orig ./configure make && make install tee > /etc/profile.d/mwget.sh <<EOF alias mwget='mwget -n 8' EOF
source /etc/profile |