A BitTorrent Service based on https://github.com/shiyanhui/dht and https://github.com/btlike/repository .
$ go get -u github.com/xgfone/gobt
$ go install github.com/xgfone/gobt/cmd/btspider
- Create the mysql database.
- Import the table into the database. See
mysql.sql
. - Download and deploy the elasticsearch. See http://www.elasticsearch.org/.
- Modify the configuration file.
- Start the program.
$ btspider /PATH/TO/bt.conf
- The logfile is eithor an absolute or a relative path.
- The level of the logger is one of debug, info, warn, error, crit.
- It uses GORM as the DB ORM, so for the connection of DB, see GORM.