Press "Enter" to skip to content

快速搭建属于自己的云BT下载

meizuol 0

我最近在找一些老电影看,BT的相关资源非常有限,不愿一台电脑一直开机挂着下载,正好找到了这款Simple Torrent,使用很方便,先远程下载好再下载回本地,由于购买的VPS存储容量只有60G,所以只能少量下载完了就删除,CN2回国线路速度还是很可靠的!

项目地址

Github地址:https://github.com/boypt/simple-torrent

使用SSH工具登录服务器后执行以下命令:

bash <(wget -qO- https://raw.githubusercontent.com/boypt/simple-torrent/master/scripts/quickinstall.sh)

待执行完成就已经完成功能了,如果服务器有开启防火墙记得放行端口:3000

然后访问 http://ip:3000 即可

顺便分享一个不错的 BT-Trackers服务器地址

https://trackerslist.com/all.txt

进入WEB界面配置即可

设置界面也很简洁,设置好下载和种子存储目录就可以使用了

常用命令

启动:systemctl start cloud-torrent
重启:systemctl restart cloud-torrent
停止:systemctl stop cloud-torrent
查看状态:systemctl status cloud-torrent

Docker方式安装

首先安装Docker,当然如果你使用群晖等NAS,可以直接安装好之后再执行。

#CentOS 系统
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on

#CentOS 7、Debian、Ubuntu系统
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker

安装Simple Torrent

docker run --restart=always --name simple-torrent -d \
-p 3000:3000 \
-v ~/downloads:/downloads \
-v ~/torrents:/torrents \
boypt/cloud-torrent

然后访问 http://ip:3000 即可

其他补充内容

防火墙放行端口:

#CentOS 6
iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
service iptables save
service iptables restart

#CentOS 7
firewall-cmd --zone=public --add-port=3000/tcp --permanent
firewall-cmd --reload

API使用方法

官方文档已经提供了非常详细的说明,可直接参考。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注