==简介==
使用 bittorrent + nginx + 脚本实现自动化的BT服务端
第一步、下载bt服务端
apt install bittorrent
安装完成后,会有如下程序列表
btcompletedir
btcompletedir.bittorrent
btdownloadcurses
btdownloadcurses.bittorrent
btdownloadheadless
btdownloadheadless.bittorrent
btlaunchmany
btlaunchmany.bittorrent
btlaunchmanycurses
btlaunchmanycurses.bittorrent
btmakemetafile # bt下载服务
btmakemetafile.bittorrent
btreannounce
btreannounce.bittorrent
btrename
btrename.bittorrent
btshowmetainfo
btshowmetainfo.bittorrent
bttrack # tracker 服务
bttrack.bittorrent
第二步、开启Tracker服务
# 开启track服务的目的在于,跟踪种子信息
bttrack --port 26001 --dfile dstate>/dev/null 2>&1 &
第三步、安装/配置nginx
apt install nginx
vim /etc/nginx/conf.d/bt.conf
server {
listen 80;
server_name bt.xxx.com;
root /data/wwwroot;
index index.html index.htm;
location / {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
try_files $uri $uri/ =404;
}
}