debian 12 安装aria2和ariaNG
以下是在Debian 12上安装Aria2和AriaNG的步骤:
- 安装Aria2
在终端中输入以下命令:
sudo apt update
sudo apt install aria2
- 安装AriaNG
在终端中输入以下命令:
sudo apt update
sudo apt install nginx php-fpm
安装完成后,打开Nginx配置文件:
sudo nano /etc/nginx/sites-available/default
在文件最后添加以下内容:
location /ariang {
root /usr/share/nginx/html;
index index.html;
}
保存并关闭文件。然后,下载AriaNG的最新版本:
sudo wget https://github.com/mayswind/AriaNg/releases/download/1.2.2/AriaNg-1.2.2.zip -P /usr/share/nginx/html/ariang
解压缩文件:
sudo unzip /usr/share/nginx/html/ariang/AriaNg-1.2.2.zip -d /usr/share/nginx/html/ariang
设置文件夹权限:
sudo chown -R www-data:www-data /usr/share/nginx/html/ariang
- 配置Aria2和AriaNG
创建Aria2配置文件:
sudo nano /etc/aria2/aria2.conf
添加以下内容:
dir=/path/to/download/folder
max-concurrent-downloads=5
continue=true
max-connection-per-server=5
split=16
rpc-listen-all=true
rpc-allow-origin-all=true
rpc-listen-port=6800
rpc-secret=yourSecret
enable-rpc=true
将“/path/to/download/folder”更改为您要下载文件的文件夹路径。将“yourSecret”更改为您选择的密码。
保存并关闭文件。然后,启动Aria2:
sudo systemctl start aria2
启动AriaNG:
sudo systemctl start nginx
现在,您可以通过在Web浏览器中输入服务器的IP地址和端口号(例如http://192.168.1.100/ariang)来访问AriaNG。输入您在Aria2配置文件中添加的密码即可访问。
至此,您已经成功地在Debian 12上安装了Aria2和AriaNG
原文地址: https://www.cveoy.top/t/topic/ho1J 著作权归作者所有。请勿转载和采集!