安装依赖
apt-get update
apt-get install build-essential pkg-config automake libtool git libgeoip-dev python3 python3-dev -y
apt-get install libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev -y
apt-get install qtbase5-dev qttools5-dev-tools libqt5svg5-dev zlib1g-dev -y
1.Debian9 系统 只能最高安装 qBittorrent4.19
安裝libtorrent 1.1.13
wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_13/libtorrent-rasterbar-1.1.13.tar.gz
tar xf libtorrent-rasterbar-1.1.13.tar.gz
cd libtorrent-rasterbar-1.1.13
./configure --disable-debug --enable-encryption --with-libgeoip=system
make -j$(nproc)
make install
ldconfig
安裝qBittorrent 4.1.9
建议代码一行行复制再粘贴,一堆复制粘贴容易出错或者遗漏
wget https://github.com/qbittorrent/qBittorrent/archive/release-4.1.9.tar.gz
tar xf release-4.1.9.tar.gz
cd qBittorrent-release-4.1.9
./configure --disable-gui --disable-debug
make -j$(nproc)
make install
2.Debian10系统 安装最新版 qBittorrent4.25
安裝libtorrent 1.2.7
wget https://github.com/arvidn/libtorrent/releases/download/libtorrent_1_2_7/libtorrent-rasterbar-1.2.7.tar.gz
tar xf libtorrent-rasterbar-1.2.7.tar.gz
cd libtorrent-rasterbar-1.2.7
./configure --disable-debug --enable-encryption --with-libgeoip=system CXXFLAGS=-std=c++14
make -j$(nproc)
make install
ldconfig
安裝qBittorren4.25
wget https://github.com/qbittorrent/qBittorrent/archive/release-4.2.5.tar.gz
tar xf release-4.2.5.tar.gz
cd qBittorrent-release-4.2.5
./configure --disable-gui --disable-debug
make -j$(nproc)
make install
4.开机启动
vi /etc/systemd/system/qbittorrent.service
[Unit]
Description=qBittorrent Daemon Service
After=network.target
[Service]
LimitNOFILE=512000
User=root
ExecStart=/usr/local/bin/qbittorrent-nox
ExecStop=/usr/bin/killall -w qbittorrent-nox
[Install]
WantedBy=multi-user.target
systemctl enable qbittorrent.service #开机自启动
systemctl start qbittorrent.service #启动
systemctl restart qbittorrent.service #重启
启动qBittorrent
qbittorrent-nox
访问一下web页面,ip:8080,用户名admin,密码adminadmin,然后更改一下语言啊,下载地址啊之类的设置。这里说下为了防止出错,建议给下载目录0777权限。
修改 qBittorrent 访问端口 命令
qbittorrent-nox --webui-port=8088 &
把 8888 修改成 你想要的端口 然后用 qBittorrent重启命令 重启下即可
[参考] https://gd772.com/index.php/archives/17/