免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 979 | 回复: 0
打印 上一主题 下一主题

CentOS安装BT服务器 [复制链接]

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-18 14:03 |只看该作者 |倒序浏览
系统为CentOS5.3,,BT服务器软件为:BitTorrent

首先升级一下python
yum install python -y

再下载BitTorrent
wget
http://download.bittorrent.com/dl/archive/BitTorrent-3.9.1.tar.gz
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&  (运行脚本)

再打开网页
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 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)

已经在下载了,和和
相关资料
http://zh.wikipedia.org/wiki/BitTorrent
      
http://linux.chinaunix.net/bbs/viewthread.php?tid=376709




本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/249/showart_1968657.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP