CentOS安装BT服务器

系统为CentOS5.3,,BT服务器软件为:BitTorrent
 
首先升级一下python
yum install python -y
 
再下载BitTorrent
python setup.py install  (安装)
 
[root@localhost ~]# cat bt.sh 
#!/bin/bash
cd /usr/bin;python bttrack.py --port 6969 --dfile dfile.log&  (运行脚本)
 
再打开网页 http://ip:6969/就可以显示:

BitTorrent download info

  • tracker version: 3.9.1
  • server time: 2009-06-19 05:44 UTC

not tracking any files yet...

种子制作:

[root@localhost ~]# btmaketorrent.py

http://10.88.12.89:6969/announce /root/mysql-5.1.31.tar.gz

对mysql创建一个种子
[root@localhost ~]# ls -al mysql-5.1.31.tar.gz*
-rw-r--r-- 1 root root 30842205 06-16 11:28 mysql-5.1.31.tar.gz
-rw-r--r-- 1 root root     2525 06-19 13:49 mysql-5.1.31.tar.gz.torrent

 
发布种子:
[root@localhost ~]# btdownloadheadless.py /root/mysql-5.1.31.tar.gz.torrent  --save_as /root/mysql-5.1.31.tar.gz
 
再打开 http://ip:6969/

BitTorrent download info

  • tracker version: 3.9.1
  • server time: 2009-06-19 06:26 UTC
info hashcompletedownloadingdownloaded
1edf185c68c921a0ad84ae8dd68495a7fe49f328201
0 files201/1
  • 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)
已经在下载了,和和

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值