A few days ago because of work needs to build a BT download server now send installation documentation. installation environment: CentOS4.5. required software: Python-2.3.4.tgzBitTorrent-3.4.2.tar.gz first install PythontarzxvfPython-2.3.4.tgzcdPython-2.3.4configure -- prefixusrlocalpython-2.3.4ma
A bt download server was set up a few days ago because of work needs, and now the installation documentation is sent.
Installation environment:
CentOS4.5.
Required software:
Python-2.3.4.tgz
BitTorrent-3.4.2.tar.gz
Install Python first
Tar zxvf Python-2.3.4.tgz
CdPython-1, 2.3.4
Configure -- prefix =/usr/local/python-2.3.4
Make; make install
Mv/Usr/bin/python-1.5
Ln-S/usr/local/python-2.3.4/bin/python/usr/bin/python
Install BitTorrent
Tar zxvf BitTorrent-3.4.2.tar.gz
Cd BitTorrent-3.4.2
Start bt Service
./BtTrAck. py -- port 6969 --DfIle dStatE>/home/log/bttrack. log &
(-- Port 6969 -- dFileDstate indicates to open port 6969 and record the log)
Create seEdFile
./Btmakemetafile. py/download/http: // $ SOURCEIP: 6969/annouNcE
(/Download/is the directory or file you want to download to others. http: // $ SOURCEIP: 6969/announce is the IP address and port of the track server you just created,
The created seed file is stored in the upper-level directory of the release directory, for example,/download. torrent)
Start the original seed download service
Nohup./btdownloadheadLess. Py -- max_allow_in 60 -- max_upload_rate 1000 -- minport 6888 -- maxport 6888/download. torrent -- saveas/download>/dev/null &
(-- The max_allow_in 60 seed allows up to 60 connections. -- max_upload_rate 1000 indicates the maximum download speed of the seed is 1000 k,
-- Minport 6888 -- maxport 6888: the maximum and minimum listening ports. In this way, the seed only listens to port 6888, which facilitates port opening on the firewall,
/Download. torrent location of the published file, -- saveas/download location of the actual file)
Each time you start a new download, you must create a seed file and enable the new seed download service on the server.CommandRun in the background
Otherwise, after the process exits, it will not be able to provide download. If you create another seed, you need to replace a port in the seed download service.