使用Aria2+Aria2Ng+OneIndex+OneDrive建立不限流量/離線BT下載/線上觀看網盤/線上儲存分享平台

來源:互聯網
上載者:User

標籤:離線   arch   建議   限流   cert   靜態   location   命令   span   

擷取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.comgit clone https://github.com/donwa/oneindex.gitmv 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 -ycd /www/wwwroot/11.22.33.44wget https://www.moerats.com/usr/down/aria-ng-0.2.0.zip && unzip aria-ng-0.2.0.zip

這時候我們就可以使用IP訪問AriaNg介面了,或者IP:連接埠,這取決於你添加網域名稱的時候填的什麼了。

 

使用Aria2+Aria2Ng+OneIndex+OneDrive建立不限流量/離線BT下載/線上觀看網盤/線上儲存分享平台

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.