1. 编译安装apache, 本例在/usr/local
2. 在httpd.conf 文件中添加该行: AddType application/x-bittorrent .torrent
3. 安装bt程序 : sudo aptitude install bittorrent
4. 运行tracker: sudo bttrack --port 6969 --dfile /tmp/dfile >/tmp/bt.log &
5. 生成种子文件: ./btmakemetafile.py a_large_file http://my.tracker:6969/announce
6. 运行apache: sudo /usr/local/apache2/bin/apachectl restart
7. 将要下载的文件、及其种子文件放到htdocs目录(或者htdocs下子目录)
8. 服务器做种, 在种子文件目录下运行: btlaunchmany ~/bt > dev/null &
9. 测试:做一个简单的bt.html,列出种子的连接,放在/usr/local/apache/htdocs,然后找一台机(也可以用本机)跑一BT下载 程序测试。
ubuntu搭建BT Tracker
最新推荐文章于 2023-02-21 11:10:39 发布