在 Ubuntu 服务器上安装 qBittorrent-nox#
更新系统#
sudo apt update && sudo apt upgrade -y
导入 qBittorrent-nox 稳定版本的源#
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable -y
导入 qBittorrent-nox 非稳定版本的源(每夜版)#
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-unstable -y
更新源#
安装 qBittorrent-nox#
sudo apt install qbittorrent-nox -y
创建用户和用户组#
sudo adduser --system --group qbittorrent-nox
# on fedora
sudo groupadd qbittorrent-nox
将你添加到用户组中#
sudo adduser your-username qbittorrent-nox
# on fedora
sudo usermod -aG qbittorrent-nox your-username
创建 service 文件#
sudo vim /etc/systemd/system/qbittorrent-nox.service
[Unit]
Description=qBittorrent Command Line Client
After=network.target
[Service]
Type=forking
User=qbittorrent-nox
Group=qbittorrent-nox
UMask=022
ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080
Restart=on-failure
[Install]
WantedBy=multi-user.target
重载 systemctl#
sudo systemctl daemon-reload
启动 qBittorrent-nox#
sudo systemctl start qbittorrent-nox
开启开机自启动 qBittorrent-nox#
sudo systemctl enable qbittorrent-nox
检查 qBittorrent-nox 是否启动#
systemctl status qbittorrent-nox
登录到 qBittorrent-nox#
Item | Value |
---|
username | admin |
password | adminadmin |
如何删除 qBittorrent-nox#
# Remove qBittorrent Stable
sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-stable
# Remove qBittorrent Unstable (Nightly)
sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-unstable -y
# Remove qBittorrent
sudo apt autoremove qbittorrent-nox