接触bt的人应该都知道opentracker,一个超高性能的tracker服务程序.基于C语言编写.
但是官网并没有提供直接使用的二进制文件,其实以前我转发了一个lala.im写的安装教程,不过他也是编译安装了,为了方便快速搭建,于是就说自己编译一份出来放到gayhub上.
https://github.com/bigcaibao/opentracker-binaries
来个比较傻瓜化的安装教程.免得有人问..
wget https://github.com/bigcaibao/opentracker-binaries/releases/download/v20240622/opentracker-binaries.tar.gz
tar -xzvf opentracker-binaries.tar.gz
cd opentracker
chmod +x opentracker
./opentracker -f ./opentracker.conf
实际上这样就已经启动成功了,但是呢...鉴于之前遇到的问怎么让它在后台运行啊,怎么让它开机自启啊...参考下面这个,注意修改目录为你的目录,而且用户组我写的是root,强烈建议使用低权限用户和组
echo -e "[Unit]\nDescription=Opentracker Service\nAfter=network.target\n\n[Service]\nExecStart=/root/opentracker/opentracker -f /root/opentracker/opentracker.conf\nWorkingDirectory=/root/opentracker\nRestart=always\nUser=root\nGroup=root\n\n[Install]\nWantedBy=multi-user.target" | sudo tee /etc/systemd/system/opentracker.service > /dev/null
sudo systemctl daemon-reload
一些常规命令:
#设置开机自启
sudo systemctl enable opentracker
#启动
sudo systemctl start opentracker
#停止
sudo systemctl stop opentracker
#查看状态
sudo systemctl status opentracker
#重启
sudo systemctl restart opentracker
具体配置要怎么修改,参考opentracker.conf
文件.拉到最后,有中文..
如果你有兴趣自己编译..
sudo apt update
sudo apt install cvs git build-essential
sudo apt-get install build-essential libssl-dev libevent-dev zlib1g-dev
cvs -d :pserver:cvs@cvs.fefe.de:/cvs -z9 co libowfat
cd libowfat
make
cd ..
git clone git://erdgeist.org/opentracker
cd opentracker
make