Ubuntu24.04TLS安装qBittorrent-nox并开机自启动

安装

apt update  
apt install qbittorrent-nox

注意事项

这里需要注意一点:先手动运行一下qbittorrent-nox,弹出Admin的随机密码后在运行下面的自启动,否则你不知道账号密码,log里面也不会记录

自启动

创建service文件

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

然后按下Curl+X,后面回车直到退出久完成了保存

最后执行下面的命令来控制程序

开机自启

systemctl enable qbittorrent-nox

关闭开机自启

systemctl disable qbittorrent-nox

开启程序

systemctl start qbittorrent-nox

关闭程序

systemctl stop qbittorrent-nox

查看程序状态

systemctl status qbittorrent-nox
© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
相关推荐
评论 抢沙发
头像
帅的人都会拽两句好词
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容