Introduction to download tools in Linux ---- aria2, linux ---- aria2
Ariac
Address: http://aria2.sourceforge.net/
: Http://sourceforge.net/projects/aria2/files/stable/aria2-1.18.10/
Introduction
Aria2 is a command line running tool, multi-protocol, multi-source download tool (HTTP/HTTPS,
Multi-link download.
Features
Lightweight, 4-9 MB memory usage on average, BitTorrent download speed 2.8MiB/s, the CPU usage is about 6%.
Comprehensive support for BitTorrent features, including DHT, PEX, Encryption, Magnet URI, Web-Seeding, download options, and local resource detection. Mtalink support. Including File verification, HTTP/FTP/BitTorrent integration and Configuration for language, location, OS, and so on.
Is a very powerful multi-thread download tool in Linux. It supports breakpoint and segmentation, traditional http, https, and ftp protocols, and BitTorrent protocol, it is also a good choice for many netizens to download the offline files of thunder.
Install
Currently, aria2c has been included in many Linux distributions. For example, in Ubuntu or Debian, You can execute the following commands on the terminal:
sudo apt-get install aria2
You can also download the source code for installation:
Download the command wget Uninstall./configure compile command make installation command make install
Note: you can download the latest source code package based on the latest version of the current project.
Use download to directly download from URL
aria2c http://example.org/mylinux.iso
From two sources (more)
aria2c http://a/f.iso ftp://b/f.iso
Download BitTorrent Seeds
aria2c http://example.org/mylinux.torrent
BitTorrent Magnet URI (the legendary Magnet link)
aria2c 'magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C'
Metalink
aria2c http://example.org/mylinux.metalink
Download the Link (uri) in the URI. text File)
aria2c -i uri.txt
Multipart download with special features
Multipart download uses the multipart download feature of aria2 to speed up object download, which is particularly useful for downloading large objects. To use the multipart download function of aria2, you must specify the s option in the command. For example:
aria2c -s 2 http://www.mirror.tw/pub/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso
This will use two connections to download the file. The parameter value after s is between 1 ~ 5, you can choose according to the actual situation.
Resumable upload
Resumable upload: You can use the c option in the command to resume the upload. For example:
aria2c -c http://www.mirror.tw/pub/ubuntu/releases/jaunty/ubuntu-9.04-desktop-i386.iso
Two download modes: direct download
The two common modes are direct download, for example, the command method we introduced earlier.
Aria2c "http: // host/file.zip" and exit after it is complete, just like wget (You may not know.
Rpc server
The other is the rpc server mode, which features that it does nothing after it is started, and waits for the task to be added from the rpc interface, and does not exit after the download. Yes, just like thunder. Of course, it won't upload data on your hard disk.
Differences between rpc and direct download
Because the first method is suitable for pure programmers, because programmers are all native * nix, and everyone is used to the command every time. Without command lines, they cannot use computers, however, for common users, the second type is most commonly used.
Default startup Method
Generally, the rpc-based startup command is
aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all -c -D 。
However, this command is actually not good! Do not use this startup method.
First, it is inconvenient to modify and save the configuration by using commands,
-D leads to failure to see error information.
Recommended startup Method
We recommend that you use the configuration file $ HOME/. aria2/aria2.conf. Well, I know that the address on the route cannot be modified or will be lost after restart, so you can put it somewhere else, and then aria2c-conf-path = pay attention to fill in the complete path, because the ghost knows that this program was started from that path. -D (used for background execution, so that the program will not exit after ssh disconnection) is only used in the startup script after confirmation of OK.
However, the above methods are based on the configuration file (that is, the command line), and we have a better way in the graphic interface.
Graphic Interface
Aria2 does not have a graphic interface. It is known that the following graphic interfaces are relatively useful:
YAAM
YAAW-Yet Another Aria2 Web Frontend
Is a pure front-end implementation of the Aria2 Web Front-End Interface. You do not need to set up any servers. You only need to open them in the browser and use them immediately.
Project address: http://binux.github.com/yaaw/
Webui-aria2
Another web Front-end webui-aria2
The configuration for downloading thunder is global. The yaaw flexible interface is too fancy. It is not compatible with mobile devices.
YAAM and webui-aria2 usage notes
① Use modern browsers such as chrome and firefox for access. These two items can be used directly. In addition to reading English, what is the need to download them for use? (Tucao: Do you don't think the title of the webui-aria2 is always pressed into several lines, strange color (yes, that is the blue background, the Use M m IP and port settings button in the dark blue color) Isn't it ugly ?)
② The configuration on these two things will expire after restart, so please use the configuration file to save your settings
③ The graphic interface is basically based on the RPC mode. Therefore, make sure that RPC is enabled, the IP port is accessible, and the correct address is entered in the Manager.
④ Place all configurations in the configuration file, and add the-D option only after confirming that the configuration is correct.
⑤ If an error occurs, read the error message!
For more information about aria2 configuration, see
Http://blog.binux.me/2012/12/aria2-examples/
Uget (commonly used)
Of course, we can also use other download tools and use aria2 as a plug-in.
Commonly used uget
Several uget + aria2 blogs found on the Internet
Http://blog.csdn.net/darennet/article/details/40678527
Http://justcoding.iteye.com/blog/1651514
Uget home page: http://www.ugetdm.com/