linux系統下BT伺服器的架設

來源:互聯網
上載者:User

 

下載安裝python

下載安裝BitTorrent

啟動BitTorrent的tracker服務,這個服務用來跟蹤、分發所有下載情況
bttrack --port 6969 --dfile /tmp/bt.log >/dev/null 2>&1 &
可以在IE內打入:http://ip:6969/ 去看服務的相關資訊,如
http://192.168.73.60:6969/

製作BT種子檔案
btmakemetafile file trackerurl  ,如:
btmakemetafile ./print.so http://192.168.73.60:6969/announce
也可以對目錄製作種
btmakemetafile dir trackerurl
http://IP:6969/announce” 就是是你剛做的tracker伺服器的IP及連接埠

產生第一個種子(seed)
btdownloadheadless --max_allow_in 20 --max_upload_rate 500 --minport 6888 --maxport 6888 /opt/bt/print.so.torrent --saveas /opt/bt/print.so

--max_allow 20 指這個種子最多可以接受20個串連
--max_upload_rate 500 指這個種子最大的可以接受下載的頻寬 500 KB(byte)/s,這樣可以控制下載頻寬。
--minport 6888 --maxport 6888 最大最小監聽連接埠,這樣寫就是說種子只監聽6888連接埠,這樣方便在防火牆上開連接埠
--saveas  實際檔案的位置

參考
http://blog.csdn.net/tobeabetterman_he/archive/2006/12/08/1434444.aspx

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.