How to Fix the WordPress White Screen of Deat
The WordPress White Screen of Death (WSOD) is one of th...
Aria2 is a lightweight and highly versatile download utility that supports multiple protocols, including HTTP, HTTPS, FTP, SFTP, and BitTorrent. By integrating it with AriaNg, a modern web-based interface, you can easily manage downloads from a browser. This guide provides a comprehensive walkthrough for installing and configuring Aria2 and AriaNg on a Linux system.
Aria2 can be installed quickly using a community-provided script. Follow the steps below:
To simplify the installation process, download the automated script:
wget -N git.io/aria2.sh && chmod +x aria2.sh
Execute the script to install Aria2:
./aria2.sh
The script will automatically configure Aria2, including setting up a download directory, configuration file, and an RPC key.
Once installed, you can manage the Aria2 service using the following commands:
/etc/init.d/aria2 start
or service aria2 start
/etc/init.d/aria2 stop
or service aria2 stop
/etc/init.d/aria2 restart
or service aria2 restart
/etc/init.d/aria2 status
or service aria2 status
After installation, note the following important configurations:
/root/.aria2c/aria2.conf
This file contains settings for Aria2, including optional parameters. If your system locale doesn’t support Chinese, some comments in the file might display incorrectly./root/downloads
You can change this directory in the aria2.conf
file.aria2.conf
file.AriaNg is a web-based frontend for Aria2, providing an intuitive interface for managing downloads. Below are the steps to set it up:
To download and set up AriaNg, follow these steps:
mkdir -p /var/www/ariang cd /var/www/ariang
wget https://github.com/mayswind/AriaNg/releases/download/1.3.8/AriaNg-1.3.8.zip
unzip AriaNg-1.3.8.zip
After extraction, all files will be located in /var/www/ariang
.You can use a web server like Nginx or Apache to serve AriaNg. Here’s how to set it up with Nginx:
sudo apt update sudo apt install nginx -y
/etc/nginx/sites-available/ariang
) and edit it: sudo nano /etc/nginx/sites-available/ariang
Add the following: server { listen 80; server_name your_domain_or_ip; root /var/www/ariang; index index.html; location / { try_files $uri $uri/ =404; } }
sudo ln -s /etc/nginx/sites-available/ariang /etc/nginx/sites-enabled/ sudo systemctl restart nginx
Now, you can access AriaNg through your browser by visiting http://your_domain_or_ip
.To connect AriaNg with Aria2:
http://your_domain_or_ip
).http://127.0.0.1:6800/jsonrpc
.Once configured, you can manage downloads via the AriaNg interface.
A1: Use a text editor to modify the configuration file located at /root/.aria2c/aria2.conf
. For example:
nano /root/.aria2c/aria2.conf
After editing, restart the Aria2 service to apply changes.
A2: Add the following settings to aria2.conf
:
# Global maximum download speed (bytes per second)
max-overall-download-limit=1M
# Per-task download speed limit
max-download-limit=512K
Restart the service for the changes to take effect.
A3: Check the following:
aria2.conf
.A4: Update the bt-tracker
parameter in aria2.conf
:
bt-tracker=tracker1,tracker2,tracker3
Search online for updated tracker lists to include the latest options.
A5: Ensure your browser and server are configured to use UTF-8 encoding. If the issue persists, verify that the AriaNg files were downloaded and extracted correctly.
By following this guide, you’ve successfully installed and configured Aria2 and AriaNg for efficient web-based download management. This combination offers a powerful and user-friendly solution for handling downloads on Linux.
For a more advanced and feature-rich cloud-based download management solution, we recommend SurferCloud. It provides high-speed servers, cloud storage, and enhanced tools for managing your downloads seamlessly.
The WordPress White Screen of Death (WSOD) is one of th...
ChatGPT is a cutting-edge AI model developed by OpenAI ...
Amazon Web Services (AWS) is a global leader in cloud c...