更新软件包
- sudo apt update
- sudo apt upgrade
复制代码 安装 add-apt-repository 命令
- sudo apt-get install software-properties-common -y
复制代码 安装 qbittorrent-nox- sudo apt update
- sudo apt-get install qbittorrent-nox -y
复制代码 设置开机启动
- nano /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
复制代码- sudo systemctl daemon-reload
复制代码 启动
- sudo systemctl start qbittorrent-nox
复制代码 停止- sudo systemctl stop qbittorrent-nox
复制代码 设置开机启动- sudo systemctl enable qbittorrent-nox
复制代码 查看状态- sudo systemctl status qbittorrent-nox
复制代码 |