此处我们主要使用的工具为opentracker和ctorrent,主要服务分为以下几种:
- Tracker服务器(使用opentracker)
- 种子提供者和初始上传者(ctorrent做种)
- 下载服务器(ctorrent做下载客户端)
安装工具
1. 安装opentracker
打开http://erdgeist.org/arts/software/opentracker/#overview
参照以下编译安装:
cvs -d :pserver:cvs@cvs.fefe.de:/cvs -z9 co libowfat
cd libowfat
make
cd ..
# LEGACY: cvs -d:pserver:anoncvs@cvs.erdgeist.org:/home/cvsroot co opentracker
git clone git://erdgeist.org/opentracker
cd opentracker
make
如果缺少gcc和cvs等工具请自行安装
2. 安装ctorrent
apt install ctorrent -y
配置和开启服务
1. 配置opentracker
将源码中的opentracker.conf.example拷贝到/etc/opentracker.conf,根据需要编辑
2. 开启tracker服务器
opentracker -f /etc/opentracker.conf
默认是6969端口
可以查看的地址包括:
http://trackerip:port(6969)/announce
http://trackerip:port(6969)/scrape
http://trackerip:port(6969)/stats
http://trackerip:port(6969)/stats?mode=everything
上述地址包括了tracker服务器的详细运行信息
3. 制作torrent种子
ctorrent -t -u "http://trackerip:port(6969)/announce" -s yourfile.tgz.torrent yourfile.tgz
4. 启动初始上传服务
让制作的种子和文件存在于同一文件夹中,开启服务之后就会自动做种
ctorrent yourfile.tgz.torrent
5. 启动其他的下载客户端
在其他机器上安装ctorrent,并拷贝torrent文件,种子文件比较小,可以自由分发,然后启动下载,下载完毕后会自动开启上传
ctorrent yourfile.tgz.torrent
本文介绍如何使用opentracker和ctorrent搭建BT种子追踪服务器及下载服务,包括安装配置流程、启动服务方法及查看运行状态。适用于希望了解BT种子分发原理的技术人员。
&spm=1001.2101.3001.5002&articleId=86231517&d=1&t=3&u=229157df475643c58283814c739ea882)
1721

被折叠的 条评论
为什么被折叠?



