zoukankan      html  css  js  c++  java
  • 使用Aria2+Aria2Ng+OneIndex+OneDrive建立不限流量/离线BT下载/在线观看网盘/在线存储分享平台

    获取OneDrive

    自行搜索或者宝购买

    安装

    1、安装宝塔

    #Centos系统
    yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
    #Ubuntu系统
    wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh
    #Debian系统
    wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh

    安装完成后,进入面板安装PHP 5.6+Nginx

    2、安装OneIndex
    先添加域名,然后上传程序文件到网站根目录/www/wwwroot/xxx.xx.com,将文件解压出来,并设置config/cache/可读写权限,程序下载:OneIndex.zip

    也可以使用命令上传到根目录:

    #Debian/Ubuntu系统
    apt-get install git -y
    #CentOS系统
    yum install git -y
    
    #修改为自己域名根目录后再运行
    cd /www/wwwroot/xx.com
    git clone https://github.com/donwa/oneindex.git
    mv oneindex/* ./
    chmod 777 ./config && chmod 777 ./cache

    再点击域名设置,添加Nginx伪静态:

    location / {
    if (!-f $request_filename){
    set $rule_0 1$rule_0;
    }
    if (!-d $request_filename){
    set $rule_0 2$rule_0;
    }
    if ($rule_0 = "21"){
    rewrite ^/(.*)$ /index.php?/$1 last;
    }
    }

    最后打开域名进行安装和绑定OneDrive了,后台地址:https://xx.xx.com/?/admin,默认密码:oneindex。如果你想给域名加上https安全访问,可以通过域名设置配置一下SSL证书。

    3、安装Aria2
    这里用的逗比的脚本,使用命令:

    wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh
    #备用地址
    wget -N --no-check-certificate https://www.moerats.com/usr/shell/Aria2/aria2.sh && chmod +x aria2.sh && bash aria2.sh

    安装完成后,如果我们想修改密码、下载文件位置、端口的话,可以使用命令bash aria2.sh,再选择修改配置即可,这里建议使用该脚本配置自动更新BT-Tracker服务器,对下载BT有加成。

    4、安装AriaNg
    这一步和安装OneIndex差不多,先添加一个域名,不想用域名的可以在添加域名那里填上IP或者IP:端口,然后将AriaNg程序上传到对应的根目录,可以使用命令:

    #这里以添加IP为例
    #Debian/Ubuntu系统
    apt-get install unzip -y
    #CentOS系统
    yum install unzip -y
    
    cd /www/wwwroot/11.22.33.44
    wget https://www.moerats.com/usr/down/aria-ng-0.2.0.zip && unzip aria-ng-0.2.0.zip

    这时候我们就可以使用IP访问AriaNg界面了,或者IP:端口,这取决于你添加域名的时候填的什么了。

    搞完了,但是感觉没什么价值,主要是对于云机器的要求太高了,上传网络太慢,基本上就没有他的功效了。

    放弃这个方案。

  • 相关阅读:
    Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!)D(交互,DFS)
    【PAT甲级】1122 Hamiltonian Cycle (25分)
    Codeforces Round #622 (Div. 2)D(离散化,状压DP)
    Codeforces Round #625 (Div. 1, based on Technocup 2020 Final Round)B(反向建图,BFS最短路)
    Codeforces Round #625 (Div. 1, based on Technocup 2020 Final Round)C(线段树,扫描线)
    【PAT甲级】1121 Damn Single (25分)
    【PAT甲级】1120 Friend Numbers (20分)(SET遍历)
    【PAT甲级】1119 Pre- and Post-order Traversals (30分)(已知先序后序输出是否二叉树唯一并输出中序遍历)
    【PAT甲级】1118 Birds in Forest (25分)(并查集)
    LOJ2181 排序
  • 原文地址:https://www.cnblogs.com/lijiejoy/p/9783695.html
Copyright © 2011-2022 走看看