找回密码
 立即注册
CeraNetworksBGVM服务器主机交流IP归属甄别会员请立即修改密码
查看: 84|回复: 9

Debian安装qb后怎么保持运行

[复制链接]

37

主题

198

回帖

753

积分

高级会员

积分
753
发表于 2022-1-20 15:50:33 | 显示全部楼层 |阅读模式
sudo apt-get install qbittorrent-nox
装完后,sudo qbittorrent-nox启动,浏览器ip+端口,能正常打开了,但一关ssh,就不行了,怎么保持一致运行?

在网上搜的下面这个方法,不管用,有没有正确方法


在后台启动Qbittorrent Web UI的方法

想要启动Qbittorrent Web UI并将其发送到后台,请执行下列操作。

第1步、使用touch命令并创建新的脚本文件:

sudo touch /usr/bin/qb-start

第2步、向脚本文件添加命令:

sudo -s

echo '#!/bin/bash'

echo 'sudo qbittorrent-nox &>/dev/null &'

第3步、更新脚本的权限:

sudo chmod +x /usr/bin/qb-start

第4步、运行脚本以使其在后台运行:

qb-start
回复

使用道具 举报

5

主题

100

回帖

323

积分

中级会员

积分
323
发表于 2022-1-20 15:51:45 | 显示全部楼层
nohup 字数补丁
回复

使用道具 举报

285

主题

572

回帖

3200

积分

论坛元老

积分
3200
发表于 2022-1-20 15:52:51 | 显示全部楼层
[ol]
  • ./qbittorrent-nox d[/ol]复制代码

  • 回复

    使用道具 举报

    52

    主题

    693

    回帖

    1906

    积分

    金牌会员

    积分
    1906
    发表于 2022-1-20 15:54:05 | 显示全部楼层
    难道你连 nohub, setsid, screen 都不知道都不会使用的?

    你真的是不会使用搜索的?
    回复

    使用道具 举报

    0

    主题

    658

    回帖

    1758

    积分

    金牌会员

    积分
    1758
    发表于 2022-1-20 16:04:00 | 显示全部楼层
    [ol]
  • nano /etc/systemd/system/qbittorrent.service
  • ######################################
  • [Unit]
  • Description=qBittorrent Daemon Service
  • After=network.target
  • [Service]
  • LimitNOFILE=512000
  • User=root
  • ExecStart=/usr/bin/qbittorrent-nox
  • ExecStop=/usr/bin/killall -w qbittorrent-nox
  • [Install]
  • WantedBy=multi-user.target
  • ######################################
  • systemctl enable qbittorrent.service
  • systemctl start qbittorrent.service[/ol]复制代码
  • 回复

    使用道具 举报

    18

    主题

    434

    回帖

    1664

    积分

    金牌会员

    积分
    1664
    发表于 2022-1-20 15:54:09 | 显示全部楼层
    qbittorrent 官方wiki里写的明明白白
    回复

    使用道具 举报

    46

    主题

    2174

    回帖

    5868

    积分

    论坛元老

    积分
    5868
    发表于 2022-1-20 15:55:54 | 显示全部楼层
    用 systemd 守护,,,
    回复

    使用道具 举报

    109

    主题

    392

    回帖

    1691

    积分

    金牌会员

    积分
    1691
    发表于 2022-1-20 15:57:12 | 显示全部楼层
    nohup
    回复

    使用道具 举报

    23

    主题

    137

    回帖

    857

    积分

    高级会员

    积分
    857
    发表于 2022-1-20 15:57:38 | 显示全部楼层
    5楼正解
    回复

    使用道具 举报

    30

    主题

    211

    回帖

    780

    积分

    高级会员

    积分
    780
    发表于 2022-1-20 15:59:28 | 显示全部楼层
    我是用systemd
    https://github.com/qbittorrent/qBittorrent/wiki/Running-qBittorrent-without-X-server-(WebUI-only,-systemd-service-set-up,-Ubuntu-15.04-or-newer)#setup-the-systemd-service
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|HS2V主机综合交流论坛

    GMT+8, 2024-6-1 21:34 , Processed in 0.090324 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表