Debian 10安装 最新版 qBittorrent

原文:https://gd772.com/index.php/archives/6/

更新系统依赖

apt update && apt upgrade

安装所需依赖

apt-get -y install build-essential pkg-config automake libtool git libgeoip-dev python3 python3-dev libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev qtbase5-dev qttools5-dev-tools libqt5svg5-dev zlib1g-dev nano

安裝 libtorrent 1.2.14:

wget https://github.com/arvidn/libtorrent/releases/download/v1.2.14/libtorrent-rasterbar-1.2.14.tar.gz
tar xf libtorrent-rasterbar-1.2.14.tar.gz
cd libtorrent-rasterbar-1.2.14
./configure --disable-debug --enable-encryption --with-libgeoip=system
make -j$(nproc)
make install
ldconfig

安裝 qBittorrent 4.35

wget https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-4.3.5.tar.gz
tar xf release-4.3.5.tar.gz
cd qBittorrent-release-4.3.5
./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 首次启动 请安 y 接受确认

qbittorrent-nox

接着按 Ctrl+c 退出,启动后台运行

systemctl start qbittorrent.service

至此 qbittorrent 安裝完成 访问 WebUI:http://你的IP:8080/ 默认用户名:admin 默认密码:adminadmin

关闭 qBittorrent 命令:

systemctl stop qbittorrent.service

启动 qBittorrent 命令:

systemctl start qbittorrent.service

重启 qBittorrent 命令:

systemctl restart qbittorrent.service

发表评论