GitHub - maysrp/yunBT: 基于TP3.1的多用户BT离线下载
source link: https://github.com/maysrp/yunBT
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
YunBT
##安装
Aria2 安装:
Debian 8系统 apt-get 安装
apt-get update && apt-get install -y aria2
创建目录:
mkdir /root/.aria2
修改配置文件: 下载配置文件:http://webdir.cc/aria2.conf
修改配置信息请参考:aria2.conf
保存到刚刚的目录上
wget http://webdir.cc/aria2.conf /root/.aria2/aria2.conf
下载http://webdir.cc/dht.dat dht.dat 到/root/.aria2/
wget http://webdir.cc/dht.dat /root/.aria2/dht.dat
执行命令:
echo '' > /root/aria2.session
执行命令,让aria2启动: 若没安装screen 请先
apt-get install -y screen
在安装好screen后执行
screen -dmS aria2 aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all -c
yunbt配置服务
PHP>5.3
入口文件 index.php
define("DO_SIZE",10);//设定下载限制 10为10GB,超过10GB任务直接删除
数据库
yunbt.sql导入数据库
/Bt/Conf/config.php 数据库配置
权限配置
/uploads 777
/download 777
/Bt/Runtime 777
刷新设置
Debian下
crontab -e
*/1 * * * * curl http://your_domain/index.php/Ondo/curl
使用
-
离线下载支持BT种子,Magnet链接以特征码等下载
-
可以支持的在线查看的文件: 视频:mp4,webm,ogg; 音频:mp3; 图片:jpg,png,gif; 文件:pdf text html;
-
已经开启邀请码,管理员可以分配账户下载量
-
默认文件最大不超过10GB,当单个文件不超过6小时下载时间。
用户面板
管理面板
Apache
若LNMP下需要pathinfo的支持。
默认管理员:
admin
a123456
管理面板:
http://your_domain/index.php/Admin
统计添加
/Bt/Tpl/Public/index.html
在该文件中添加统计代码。
问题/注意
- 分享内容暂时管理员无法管理
- 管理员无法群聊(可以设置一个admin的用户)
- 用户与管理员分离,用户名可以为admin,需要管理员创建一个admin的用户。
- 不会对此大改。[下版本将基于TP5的版本]
- 代码很乱,见谅
一键安装
https://www.miao8.top/linuxshell/9.html
- 不是本人写的,不对其中负责。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK