linux系统BT服务器搭建

linux 系统BT服务器搭建
1.安装bittorrent
    sudo apt-get install bittorrent

2.配置启动BT
    bttrack --port 6969 --dfile dstate >/dev/null 2>&1 &
         
3.将提供下载的文件制作成种子
    btmakemetafile [文件名/文件夹] http://www.mydomain.com:6969/announce
    ----www.mydomain.com是Linux服务器的域名(eg:http://172.29.10.114:6969/announce)

4.配置Web服务器
    (1) 安装Apache(下载网址http://httpd.apache.org)
       tar -zxvf httpd-2.2.29.tar.gz
       ./configure --prefix=/usr/local/apache --enable-so
       make
       sudo make install
    (2) sudo apt-get install apache2
    (3) Apache的配置文件httpd.conf(/url/local/apache/conf/httpd.conf),添加  
        AddType application/x-bittorrent .torrent
        ServerName  localhost:80
    (4) 重启Web服务
        sudo killall apache2
        sudo killall httpd
        sudo /usr/local/apache/bin/apachectl start

5.将制作的种子与原文件放在Web服务器的文档目录中以供用户下载
    服务器文档目录/usr/local/apache/htodocs

6.启动一个Downloader(最原始的共享源),使以后的用户可以获得最初的拷贝
    (1) btdownloadheadless.py --url http://www.mydomain.com/dahuaxiyou.avi.torrent --saveas dahuaxiyou.avi
    (2) btlaunchmany [Web服务器的文档目录路径]

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值