安裝add-apt-repository命令
sudo apt-get update && sudo apt-get install software-properties-common -y
添加qbittorrent-nox的PPA軟件源
# qBittorrent 穩(wěn)定版
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
# qBittorrent 測(cè)試版
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-unstable
安裝qbittorrent-nox
sudo apt-get update && sudo apt-get install qbittorrent-nox -y
設(shè)置開機(jī)啟動(dòng)
sudo apt-get install vim -y && vim /etc/systemd/system/qbittorrent-nox.service
[Unit]
Description=qBittorrent-nox
After=network.target
[Service]
User=root
Type=forking
RemainAfterExit=yes
ExecStart=/usr/bin/qbittorrent-nox -d
[Install]
WantedBy=multi-user.target
相關(guān)命令
修改qbittorrent-nox.service文件后重新載入
sudo systemctl daemon-reload
啟動(dòng)
sudo systemctl start qbittorrent-nox
停止
sudo systemctl stop qbittorrent-nox
設(shè)置開機(jī)啟動(dòng)
sudo systemctl enable qbittorrent-nox
查看狀態(tài)
sudo systemctl status qbittorrent-nox