Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7387692
  • 博文数量: 1755
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16227
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1755)

文章存档

2024年(1)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: LINUX

2009-06-18 14:03:25

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

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

/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
 
再打开

BitTorrent download info

  • tracker version: 3.9.1
  • server time: 2009-06-19 06:26 UTC
info hash complete downloading downloaded
1edf185c68c921a0ad84ae8dd68495a7fe49f328 2 0 1
0 files 2 0 1/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)
已经在下载了,和和
相关资料
      
 

 
阅读(1994) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~