代码拉取完成,页面将自动刷新
###########
echo "aria2"
if [[ `cat /etc/*-release|grep alpine` ]];then
which aria2c || apk add aria2 && nohup aria2c --enable-rpc --rpc-listen-all &
which git || apk add git -y
which node || apk add node
[ -e aria2 ] || git clone https://ghproxy.com/https://github.com/ziahamza/webui-aria2.git aria2
cd aria2 && ps -ef |grep node-server.js|grep -v grep || nohup node node-server.js &
elif [[ `cat /etc/*-release|grep -E 'ubuntu[^ ]*|debian[^ ]*'` ]];then
which aria2c || apt install aria2 -y
nohup aria2c --enable-rpc --rpc-listen-all &
which git || apt install git -y
which node || apt install nodejs-legacy
[ -e aria2 ] || git clone https://ghproxy.com/https://github.com/ziahamza/webui-aria2.git aria2
cd aria2 && ps -ef |grep node-server.js|grep -v grep || nohup node node-server.js &
elif [[ `cat /etc/*-release|grep -E 'centos[^ ]*|fedora[^ ]*'` ]];then
which aria2c || wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#which aria2c || rpm -ivh epel-release-latest-7.noarch.rpm
#which aria2c || yum install aria2
#aria2c --enable-rpc --rpc-listen-all|grep '地址已在使用'
#pkill aria2
bash <(curl -ls https://gitee.com/ewf-9/BiJi/raw/master/aria2.sh)
#nohup aria2c --enable-rpc --rpc-listen-all &
which git || yum install git -y
which node || bash <(curl -ls https://gitee.com/ewf-9/BiJi/raw/master/nodejs.sh)
yum install nodejs -y
[ -e aria2 ] || git clone https://ghproxy.com/https://github.com/ziahamza/webui-aria2.git aria2
cd aria2 && ps -ef |grep node-server.js|grep -v grep || nohup node node-server.js &
iptables -I INPUT -p 6 --dport 8888 -j ACCEPT
iptables -I INPUT -p 6 --dport 8888 -j ACCEPT
fi
echo 'http://ip:8888'
#w="which";
#ac="nohup aria2c --enable-rpc --rpc-listen-all &"
#g="git clone https://ghproxy.com/https://github.com/ziahamza/webui-aria2.git aria2 && cd aria2 && node node-server.js"
#pe="ps -ef |grep node-server.js|grep -v grep"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。