WindmillDownloader is a web downloader.
- Thread pool.
- MultiThread Download.
- Break point reconnect.
Ubuntu.
- curl
- thread
- glog
- gflags
- boost (filesystem)
- curl
$ sudo apt-get install curl
- boost
# 下载boost库 地址 https://www.boost.org/
$ tar -zxvf ./boost.tar.gz
$ cd ./boost_1_70_0
$ sudo ./bootstrap.sh
$ sudo ./b2 install
- glog
$ sudo apt-get install libgoogle-glog-dev
- gflags
$ git clone https://github.com/gflags/gflags.git
$ cd gflags
$ make build
$ cd build
$ cmake ..
$ make -j12
$ make install
$ mkdir build
$ cd build
$ cmake ..
$ make -j
$ ./windmill_downloader [--thread_num <thread_num>] --url <url> [--out_file <output_file>]
# example:
$ ./windmill_downloader --thread_num 32 --url https://releases.ubuntu.com/20.04/ubuntu-20.04.3-desktop-amd64.iso --out_file ./ubuntu-20.04.3-desktop-amd64.iso
$ ./windmill_downloader --url http://www.gecif.net/articles/mathematiques/pi/pi_1_million.txt --out_file pi_1_million.txt
Feel free to contact me windmillyucong@163.com anytime for anything.
Copyleft! 2021 William Yu. Some rights reserved.