首先利用以下命令查看自己的Linux发行版本:
1 | lsb_release -a |
正常的版本返回示例:
1 2 3 4 5 6 | root@starx:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic |
安装依赖
1 2 | 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 |
clone libtorrent的源码并编译安装
1 2 3 4 5 6 7 8 | 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 |
下载qBittorrent的源码并编译安装
1 2 3 4 5 | 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 |
初始化及后台、自启
1 2 3 4 5 6 | #初始化 qbittorrent-nox #后台 nohup qbittorrent-nox & #自启 #将后台写入rc.local |
0 条评论