Install aria2
Under Debian, one-click installation can be performed through the following command
sudo apt-get install aria2
Install webui-aria2
One-click cloning to local via git
git clone https://github.com/ziahamza/webui-aria2.git
Run the rpc service that starts aria2 (it is recommended to use screen to start in the background)
aria2c --enable-rpc --rpc-listen-all --disable-ipv6 --rpc-secret yourpassword
In order to facilitate future use, the above commands can be used in scripts
Start the web service
If nginx is installed on your computer, you can directly copy all the files in the webui-aria2 directory to the root directory of your nginx service, and then enter your server IP in the browser or localhost on the machine to open it. After opening, you need to click Settings – link settings, and fill in the key you set when you started aria2 in the password token! You can also fill in your key in token in the configuration.js under the webui-aria2 directory to avoid the need to enter every time you enter!
If you don't have nginx installed or don't want to use nginx, you can also use the js script that comes with webui-aria2 as a web service, you need to install nodejs, enter the following command in the webui-aria2 directory to start:
node node-server.js