LeoTalk.cn
自由、随心、随性!

Debian 10安装 最新版 qBittorrent

更新系统依赖

apt update && apt upgrade
方法1:Debian编译安装:

安装所需依赖

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

 

方法2:Debian自带源安装apt:

apt-get install qbittorrent-nox

 

 

 

设置开机启动:

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

因为直接运行QB,退出shell窗口的话就会关闭,所以我们可以用nohup的方式运行QB

nohup qbittorrent-nox &

这样QB就已经稳定在后台运行了,即使你关闭shell也不会结束的。

关闭 qBittorrent 命令:

systemctl stop qbittorrent.service

启动 qBittorrent 命令:

systemctl start qbittorrent.service

重启 qBittorrent 命令:

systemctl restart qbittorrent.service
赞(0) 打赏
未经允许不得转载:LeoTalk » Debian 10安装 最新版 qBittorrent
标签:

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏