首先利用以下命令查看自己的Linux发行版本:

lsb_release -a

正常的版本返回示例:

root@starx:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionicCode language: PHP (php)

安装依赖

apt-get update
apt-get install libboost-dev libboost-system-dev build-essential libboost-chrono-dev libboost-random-dev libssl-dev libgeoip-dev git pkg-config automake libtool qtbase5-dev qttools5-dev-tools python geoip-database -yCode language: JavaScript (javascript)

clone libtorrent的源码并编译安装

git clone https://github.com/arvidn/libtorrent.git
cd libtorrent
#新版有bug
git checkout RC_1_1
./autotool.sh
./configure --disable-debug --enable-encryption --with-libgeoip=system
make && make install
ldconfigCode language: PHP (php)

下载qBittorrent的源码并编译安装

https://github.com/qbittorrent/qBittorrent/archive/release-4.1.6.tar.gz
tar xzvf release-4.1.6.tar.gz
cd qBittorrent-release-4.1.6
./configure --disable-gui --with-libgeoip=system
make && make installCode language: JavaScript (javascript)

初始化及后台、自启

#初始化
qbittorrent-nox
#后台
nohup qbittorrent-nox &
#自启
#将后台写入rc.localCode language: PHP (php)

了解 Starx's Home 的更多信息

Subscribe to get the latest posts sent to your email.

分类: Linux

0 条评论

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据