High-speed downloading of Baidu Network Disk resources using multiple threads in Linux

Source: Internet
Author: User
Tags vps

High-speed downloading of Baidu Network Disk resources using multiple threads in Linux

This article describes how to download Baidu Network Disk resources in Linux VPS. Because it is a single thread, the download speed is relatively slow, I used Sakura vps to download Baidu online storage resources no more than 500KB/s. So I will introduce another multi-thread download method with a high speed ~

9 process download
100 process download

As you can see, the download speed of the 100 process is very good. It takes only 26 seconds to download a 3.8 MB file. The download speed of the 9 process is MB/s, which is also good.

-----------------

Axel is the next good HTTP/FTP high-speed download tool in Linux. Supports multi-threaded download and resumable upload. You can download the same file from multiple addresses or from multiple connections of one address. It is suitable for multi-thread download when the network speed is not strong and increases the download speed.

Install Axel on CentOS:

Currently, no Axel exists on the yum source. We can download the rpmpackage installation at http://pkgs.repoforge.org/axel.

Run the following command on a 32-bit CentOS:

wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el5.rf.i386.rpm
rpm -ivh axel-2.4-1.el5.rf.i386.rpm

Run the following 64-bit CentOS command:

wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el5.rf.x86_64.rpm
rpm -ivh axel-2.4-1.el5.rf.x86_64.rpm

Install Axel In Debian/Ubuntu:

apt-get install axel

Axel command usage:

Axel parameter file

Optional parameters:

-N indicates the number of threads.
-O: Save the file as a directory
-S specifies the maximum number of bits per second
-Q silent mode

For example, download the lnmp installation package to specify 9 threads, save to/tmp/: axel-n 9 http://soft.vpser.net/lnmp/lnmp0.9-full.tar.gz

---------------

How to download Baidu online storage resources using multiple threads in axel:
Axel-n process count "actual" (actual acquisition method, right-click the Download button to copy the link address)

Axel multi-threaded download of Baidu Network Disk resource instance. Run the following command in ssh:
axel -n 9 "http://www.baidupcs.com/file/2012%20Dream%20Concert%28%E4%B8%8B%29%20120530%20HDTV%20x264%20720p-Ernie.mp4?fid=2449707571-250528-2904948419&time=1346296347&sign=FPDTAE-DCb740ccc5511e5e8fedcff06b081203-PfXc%2BIBHUsorsQR7RLszHLzrljs%3D&expires=1h&digest=b8ee669f1ce5c1df9383eaa69b67daea"

Note: The Baidu online storage seems to have a shielding mechanism. If the 100 process cannot be downloaded, you should open it less. I recommend that you set it to less than 10.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.