根据以下文档,你可以在任意linux发行版下建立自己的bt服务器,linux bt server
1.下载安装 http://download.bittorrent.com/dl/BitTorrent-4.0.0-GPL.tar.gz
tar xvzf BitTorrent-4.0.0-GPL.tar.gz
cd BitTorrent-4.0.0-GPL
python setup.py install
2.启动bt cracker vi /root/bin/bt.sh
#!/bin/bash
cd /usr/bin
nohup python bttrack.py --port 6969 --dfile dfile.log&
chmod +x /root/bin/bt.sh
再打开网页http://ip:6969/就可以显示:
BitTorrent download info
* tracker version: 3.9.1
* server time: 2009-06-19 05:44 UTC
not tracking any files yet…
3.种子**: btmaketorrent.py http://gaojinbo.com:6969/announce /gaojinbo.avi
4.发布种子:
nohup btdownloadheadless.py /gaojinbo.avi.torrent –save_as /gaojinbo.avi &
再打开http://gaojinbo.com:6969/
BitTorrent download info
* tracker version: 4.0.0
* server time: 2010-07-09 07:42 UTC
info hash complete downloading downloaded
8c0123e8bf905af0dba15af0f783a7ba51731ab9 1 0 0
0 files 1 0 0/0
* info hash: SHA1 hash of the "info" section of the metainfo (*.torrent)
* complete: number of connected clients with the complete file
* downloading: number of connected clients still downloading
* downloaded: reported complete downloads (total: current/all)
* transferred: torrent size * total downloaded (does not include partial transfers)
完成! |