首先于/etc/apt/sources.list最后加入:
deb http://ftp.de.debian.org/debian bullseye main然后运行以下命令安装:
sudo apt update
apt --fix-broken install qbittorrent-nox -y
cat << EOF > /etc/systemd/system/qbittorrent-nox.service
[Unit]
Description=qBittorrent Command Line Client
After=network.target
[Service]
Type=forking
User=root
ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080
ExecStop=/usr/bin/kill -w qbittorrent-nox
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
systemctl enable qbittorrent-nox
systemctl start qbittorrent-nox
qbittorrent-nox default
安装后会显示默认管理账号,密码:
The WebUI administrator username is: admin The WebUI administrator password was not set. A temporary password is provided for this session: xxxxxxxx You should set your own password in program preferences.
推荐:ColoCrossing 美国 VPS 1C1G 年付$10.99 USD 支持支付宝/PayPal 常规 VPS 套餐使用优惠码 CNY5824 循环 58%折扣 1C1G 折后月付$1.66 USD