Debian 13目前默认的qBittorrent5.X版本个人觉得不好用,爆内存严重和卡顿,所以经过测试后,推荐安装qBittorrent4.2.5。 安装依赖: ```shell sudo apt update && sudo apt upgrade -y sudo apt install build-essential pkg-config automake libtool git libgeoip-dev python3 python3-dev -y sudo apt install libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev -y sudo apt install qtbase5-dev qttools5-dev-tools libqt5svg5-dev zlib1g-dev -y ``` 安装 libtorrent-rasterbar-1.2.11: ```shell wget https://github.com/arvidn/libtorrent/releases/download/v1.2.11/libtorrent-rasterbar-1.2.11.tar.gz tar xf libtorrent-rasterbar-1.2.11.tar.gz cd libtorrent-rasterbar-1.2.11 ./configure --disable-debug --enable-encryption --with-libgeoip=system CXXFLAGS=-std=c++14 make -j$(nproc) sudo make install sudo ldconfig cd ``` 安装 qBittorrent4.2.5: ```shell wget https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-4.2.5.tar.gz tar xf release-4.2.5.tar.gz cd /root/qBittorrent-release-4.2.5/ ./configure --disable-gui --disable-debug make -j$(nproc) sudo make install cd qbittorrent-nox ``` 按 y 确认,接着按 Ctrl+c 退出 ```shell vim /etc/systemd/system/qbittorrent.service ``` 添加内容: ```shell [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 ``` 保存! ```shell systemctl enable qbittorrent.service ``` ```shell systemctl start qbittorrent.service ``` 访问 WebUI: http://你的IP:8080/ 默认用户名:admin 默认密码:adminadmin treesky 2025-08-21 上一篇: VPS环境中,飞牛OS虚拟机应用,使用NAT网络 下一篇: 没有了 评论已关闭
评论已关闭