首先利用以下命令查看自己的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: bionic
Code 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 -y
Code 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
ldconfig
Code 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 install
Code language: JavaScript (javascript)
初始化及后台、自启
#初始化
qbittorrent-nox
#后台
nohup qbittorrent-nox &
#自启
#将后台写入rc.local
Code language: PHP (php)
了解 Starx's Home 的更多信息
Subscribe to get the latest posts sent to your email.
0 条评论