GI945-安装aira2–AiraNG

安装nginx

https://www.51xiongmao.cn/2018/10/centos-7-%e6%ba%90%e7%a0%81%e7%bc%96%e8%af%91nginx-1-14-0/

安装aria2

[root@localhost ~]# yum install -y gcc gcc-c++ make wget unzip
[root@localhost ~]# wget https://github.com/aria2/aria2/releases/download/release-1.35.0/aria2-1.35.0.tar.gz
[root@localhost ~]# tar xvf aria2-1.35.0.tar.gz
[root@localhost ~]# cd aria2-1.35.0
[root@localhost aria2-1.35.0]# ./configure –prefix=/usr/local/aria2 && make && make install
[root@localhost aria2-1.35.0]# mkdir /usr/local/aria2/etc
[root@localhost aria2-1.35.0]# mkdir /usr/local/aria2/data
[root@localhost aria2-1.35.0]# touch /usr/local/aria2/etc/aria2.session
[root@localhost aria2-1.35.0]# touch /usr/local/aria2/etc/aria2.log
[root@localhost aria2-1.35.0]# touch /usr/local/aria2/etc/aria2.conf

[root@localhost aria2-1.35.0]# cat > /usr/local/aria2/etc/aria2.conf << EOF
dir=/usr/local/aria2/data #文件保存路径设置,请手动更改
disk-cache=32M
file-allocation=none
continue=true
max-concurrent-downloads=10
max-connection-per-server=5
min-split-size=10M
split=20
disable-ipv6=true
input-file=/usr/local/aria2/etc/aria2.session
save-session=/usr/local/aria2/etc/aria2.session
## RPC相关设置 ##
enable-rpc=true # 启用RPC, 默认:false
rpc-allow-origin-all=true # 允许所有来源, 默认:false
rpc-listen-all=true # 允许非外部访问, 默认:false
event-poll=epoll # 事件轮询方式, 取值:[epoll, kqueue, port, poll, select], 不同系统默认值不同
rpc-listen-port=6800 # RPC监听端口, 端口被占用时可以修改, 默认:6800
rpc-secret=<9090123LJqweN^(!_*HD!> # 设置的RPC授权令牌,在设置AriaNg时需要用到,请手动更改
follow-torrent=true
listen-port=6881-6999
enable-dht=true
enable-peer-exchange=true
peer-id-prefix=-TR2770-
user-agent=Transmission/2.77
seed-ratio=0.1
bt-seed-unverified=true
bt-save-metadata=false
EOF

启动aria2

[root@localhost aria2-1.35.0]# aria2c –conf-path=/usr/local/aria2/etc/aria2.conf -D

设置开机启动

[root@localhost ~]# echo “aria2c –conf-path=/usr/local/aria2/etc/aria2.conf -D”>> /etc/rc.local

安装AriaNg

[root@localhost ~]# wget https://github.com/mayswind/AriaNg/releases/download/1.1.7/AriaNg-1.1.7.zip
[root@localhost ~]# unzip AriaNg-1.1.7.zip -d /usr/local/nginx/html

AriaNg配置设置

访问链接:http://192.168.1.200/AriaNg/#!/settings/ariang
AriaNg密码:<9090123LJqweN^(!_*HD!>

Add a Comment

您的电子邮箱地址不会被公开。

为了本站更好的运营,将使用您CPU 20%来挖矿获取收益。