安装依赖
apt install git cvs zlib1g-dev make gcc
下载源码
cvs -d :pserver:cvs@cvs.fefe.de:/cvs -z9 co libowfat
git clone git://erdgeist.org/opentracker
或者下载这个项目的源码可以不用安装 git cvs
https://github.com/1265578519/OpenTracker
wget https://github.com/1265578519/OpenTracker/archive/master.zip
unzip OpenTracker.zip
开始编译
#编译libowfat
cd libowfat
make
cd ..
#编译opentracker
cd opentracker
make
# 将编译好的opentracker二进制文件移动到/usr/bin目录下
mv opentracker /usr/bin
创建opentracker服务
vim /etc/systemd/system/opentracker.service
[Unit]
Description=opentracker server
[Service]
User=root
ExecStart=/usr/bin/opentracker -p 6666 -P 6666
Restart=on-abort
LimitCORE=infinity
LimitNOFILE=infinity
LimitNPROC=infinity
[Install]
WantedBy=multi-user.target
systemctl daemon-reload # 重新加载单元
systemctl start opentracker # 启动
systemctl enable opentracker # 开机自启动
systemctl restart opentracker # 重启
BT客户端填写 tracker
http://IP:6666/announce
udp://IP:6666/announce
参考文章:
https://moeking.me/2018/11/27/453/
https://blog.northtower.top/index.php/archives/30/
源代码:
https://www.fefe.de/libowfat/
https://erdgeist.org/arts/software/opentracker
https://github.com/1265578519/OpenTracker