vps 上安装 qBittorrent,并设置开机自启。

vps 上安装 qBittorrent,并设置开机自启。

mgc
mgc
2022-12-04 / 0 评论 / 469 阅读 / 正在检测是否收录...

系统:debian 11
1.安装 qBittorrent-nox

wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.5.4_v2.0.9/x86_64-qbittorrent-nox
chmod +x x86_64-qbittorrent-nox

后台运行:

chmod +x x86_64-qbittorrent-nox
./x86_64-qbittorrent-nox -d

然后IP:8080就能访问了用户名:admin 密码:adminadmin

2.开机启动
nano /etc/systemd/system/x86_64-qbittorrent-nox
在电脑上新建文本文档,复制如下内容:

[Unit]
Description=x86_64-qbittorrent-nox
After=network.target

[Service]
User=root
Type=forking
RemainAfterExit=yes
ExecStart=/root/x86_64-qbittorrent-nox

[Install]
WantedBy=multi-user.target

然后保存为x86_64-qbittorrent-nox.service,通过Finalshell,把此文件上传到/etc/systemd/system文件夹下,最后设置开机自启。
开机自启命令:

输入以下命令

启动 qbittorrent-nox 并创建服务配置

systemctl start x86_64-qbittorrent-nox  

设置开机自动启动 qbittorrent-nox

systemctl enable x86_64-qbittorrent-nox

3.常用命令
启动Qbittorrent:

x86_64-qbittorrent-nox

在后台启动Qbittorrent:

x86_64-qbittorrent-nox -d

查看Qbittorrent版本:

x86_64-qbittorrent-nox -v

启动 Qbittorrent 并指定 Web 面板的端口:

x86_64-qbittorrent-nox --webui-port=xxxx

查看帮助:

x86_64-qbittorrent-nox -h

x-YgOCJz9uGMk-unsplash.jpg

0

评论 (0)

取消