Ubuntu下安装qbittorrent并设置开机启动
安装qbittorrent
1、安装qbittorrent稳定源
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable2、安装qbittorrent-nox(webui版)
sudo apt-get update && sudo apt-get install qbittorrent-nox设置开机启动
1、通过rc.local完成
如果是Ubuntu-16.10及其之后的版本需要先按下面的文章完成设置后,开机启动才会生效
[post cid="103" /]
编辑rc.local脚本
nano /etc/rc.local在exit 0前面(前一行)添加以下内容并保存
qbittorrent-nox -d2、通过创建自定义服务实现
2.1创建系统服务
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.target2.2启动qbittorrent-nox并创建服务配置
systemctl start qbittorrent-nox2.3设置开机自动启动qbittorrent-nox
systemctl enable qbittorrent-nox 当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »