Since QQ Tornado, Xunlei and other download tools have been "obsolete", it has now become "difficult" to download a video resource. Previously we shared Aria2 offline download + PotPlayer and Kodi local viewing. Many friends saw the great potential of Aria2 because it supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink downloads.
However, Aria2 is a command line download tool, which can be troublesome to install and configure. This article will share a one-click installation package of Aria2 + Caddy + YAAW+FileManager, which supports all versions of Linux platforms. You can easily use Aria2+YAAW to download resources offline, and Caddy+FileManager to manage files and play videos online.
You only need a Linux VPS host (if you don’t have one yet, you can check out the VPS-related reviews I’ve used: VPS host ranking list) and you can turn it on 24 hours a day and hang Aria2 for offline downloading. If you want to use it on local Windows, you can download and install Persepolis Download Manager (PDM), which is a graphical download tool that encapsulates the Aria2 kernel.
The power of Aria2 is that it can be integrated with other network disk storage, such as:
- Self-built Nextcloud audio and video center: Aria2 offline download + PotPlayer and Kodi local viewing
- Raspberry Pi: Ten issues in building a low-cost NAS storage home server
- Nextcloud offline download construction method-integrate Aria2, AriaNg, and Aria2 WebUI to achieve offline downloading
PS: Updated on December 2, 2019, Aria2 can also be built as an offline download and online playback platform:
.
1. Install Aria2 on Linux
Script address:
- https://GitHub.com/hellonow/aria2
Environmental requirements
CentOS 6/7 X64
Debian 8+ X64 or Ubuntu 16+ X64
32-bit systems are not supported, 32-bit systems are not supported, 32-bit systems are not supported.
starts installing . Directly copy the following commands, one per line, and follow the prompts to complete the operation.
#Centos用户
yum -y install wget unzip
#如果是Debian or Ubuntu用户
apt-get install -y wget unzip
#下面的命令通用,直接复制
wget https://github.com/helloxz/aria2/archive/master.zip
unzip master.zip && cd aria2-master && chmod u+x *.sh && ./install_aria2.sh
During the installation process, you will be asked to choose the operating system you are using.
Enter further information according to the prompts. Note: Aria2 authorization token is recommended to use a combination of letters + numbers. It is best not to contain special symbols, especially symbols such as @, to avoid unnecessary problems.
After the installation is complete, you will see the following information, remember to save it.
related commands :
#启动
/data/aria2/aria2.sh start
#停止
/data/aria2/aria2.sh stop
#重启
/data/aria2/aria2.sh restart
#卸载
cd aria2-master && ./uninstall.sh
#Caddy server配置文件
/data/aria2/caddy.conf
#Aria2配置文件
/data/aria2/aria2.conf
#离线下载目录
/data/aria2/download
#日志目录
/data/aria2/aria2.log
/data/aria2/caddy.log
2. How to use Aria2
After the installation is complete, enter http://IP:6080
to access, enter the username and password you just set, and you can see YAAW.
This is the interface of YAAW. You can see that you can add tasks, pause, file management, etc. (Click to enlarge)
Click the "Setting" button in the upper right corner and enter the RPC address displayed after installation in the JSON-RPC Path: http://token:abc123@yourIP:6800/jsonrpc
, and then save.
Finally, click Add Download Task, supporting HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink and more.
This is the YAAW download list. You can view downloaded files and ongoing tasks.
Click File Management to directly view downloaded files online. If they are videos and audios, you can also click to play them directly.
3. Issues related to Aria2
3.1 Error: Internal server error Error
Cause 1: The RPC address is wrong. After the installation is completed, you will be prompted for the RPC address. Please make sure it is filled in correctly.
Reason two: Enter netstat -apn|grep 'aria2c'
to view the process. If there is no information, you can determine that the Aria2 service has not started. Enter the command nohup aria2c --conf- path=/data/aria2/aria2.conf > /data/aria2/aria2.log 2>&1 &
Restart the service. If it still doesn’t work, please check the error log /data/aria2/aria2.log
Reason three: The firewall does not allow port 6800. Please allow the port or turn off the server firewall.
3.2 Can’t open the server after restarting it?
The script is not set to start at startup. After restarting the server, please enter /data/aria2/aria2.sh start
to run the service.
3.3 Debian/Ubuntu prompts that the installation is successful but cannot be opened?
Debian/Ubuntu does not automatically release ports. Please allow ports 6080/6800, or turn off the firewall directly. If your service provider supports security groups, additional checks are required.
3.4 Error: The parameter at 0 has wrong type
The new version no longer has this error. If you encounter such a problem, please update the script and reinstall.
4. Windows uses Aria2 to download
4.1 Windows running Aria2 script
I have already explained this method in detail in the previous local + Aria2 + Baidu network disk, and I will explain it in detail here. Download the relevant files first.
- Download: https://do.wzfou.net/wzfou/Aria2.zip
Download the installation package and there are three folders after decompression. Plugin is a Chrome plug-in. After I have used it, it may not be effective to obtain Baidu network disk. You can use the method of installing Oil Monkey introduced in this article to solve the problem. Mac OS installs Aria2GUI.dmg, which is located in the Aria2 for Mac folder on the network disk.
For Windows users, enter Aria2 for Windows and extract the file aria2.rar in the folder D:aria2, that is, D:aria2. Then create a Downloads folder in the root directory of drive D. This folder is where the files you download are stored.
Go to D:aria2, double-click the HideRun.vbs file, and then enter the task manager to see that the aria2c.exe process is running. Find aria2 control interface.rar, unzip the file at any location, and then double-click the index.html file, your default browser will open.
Next, you will enter the Aria2 WebUI control panel and add the download address, which is the same as the above operation. However, in order to download files from Baidu Netdisk, you need to install the tampermonkey application on Chrome, and then go to greasyfork.org to download the installation script. As long as it is related to Baidu, you can install it.
Now use a browser to open Baidu Netdisk, and then a button to export the download link will appear on the download page.
Copy the download link address, and then put it in Aria2 WebUI and AriaNg to start calling Aria2 download.
If the speed is too slow, you can modify the number of download connections.
You can also modify the downloaded Agent to avoid Baidu's blockade or avoid some pages that are not allowed to be downloaded by crawlers.
4.2 Configuration-free Aria2 graphics download tool: PDM
Official website:
- https://Persepolis.GitHub.IO/
Persepolis Download Manager (i.e. PDM) is an open source free download software with Aria2 as the core. No configuration is required. It also supports Windows, macOS, Linux, BSDs and other systems. It is a download tool such as Thunder The best replacement. This is the download interface of PDM. The download speed is very fast. Downloading things from Baidu Netdisk can basically reach full speed.
5. Summary
It is quite convenient to install and use Aria2 on Windows and Linux. If you have your own server, you can install the Aria2 tool on Linux, and then use the download tool to download the files on the server to the local. The Aria2 + Caddy + YAAW + FileManager one-click installation package shared in this article can directly play videos online.
The download speed using Aria2 on Windows depends on your local bandwidth. The Aria2 script on Windows can be called using Aria2 WebUI and AriaNg. PDM is suitable for lazy friends as a replacement for Thunder, which can be run directly after installation. In addition, Windows 10 now has a built-in Linux subsystem, so you can use the Linux Aria2 one-click installation package.