Debian安装qBittorrent 4.1.9

发布于 2020-10-26  6,442 次阅读


安装依赖libtorrent 1.1.13

libtorrent 1.1.13适用于qBittorrent4.0.0-4.1.9。

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.1.14。

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

cd
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

设置开机启动

nano /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

启动qBittorrent

qbittorrent-nox

访问web页面,ip:8080,用户名admin,密码adminadmin,更改语言、下载地址等设置后,Ctrl+C退出。

为防止出错,建议给下载目录0777权限。

在后台运行:

systemctl start qbittorrent.service

Love is merely a madness.