安装qb
作者发布的编译好的二制文件地址:https://github.com/userdocs/qbittorrent-nox-static/releases,选择一下适合自己电脑的版本。用ssh登录到debian,执行以下命令
下载安装。我的电脑是x86的,所以选择x86_64-qbittorrent-nox:
wget -qO /root/x86_64-qbittorrent-nox https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.4.2_v1.2.15/x86_64-qbittorrent-nox
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.9_v1.2.15/x86_64-qbittorrent-nox
chmod 700 /root/x86_64-qbittorrent-nox
把二制文件放在bin目录下面,给二进制文件700权限
给qBittorrent编写进程守护文件,让其开机启动,也可以手动让程序停止或开始。
输入,然后回车,如果没有nano命令,用vi也可以。注意这里用了简写qbt的名字,原名字太长,影响输入:
nano /etc/systemd/system/qbt.service
或
vim /etc/systemd/system/qbt.service
然后添加如下内容:
[Unit]
Description=qBittorrent Service
After=network.target nss-lookup.target
[Service]
UMask=000
ExecStart=/root/x86_64-qbittorrent-nox --profile=/root/qbt
[Install]
WantedBy=multi-user.target
备用:
vim /etc/systemd/system/qbt.service
[Unit]
Description=qBittorrent Daemon Service
After=network.target
[Service]
LimitNOFILE=512000
User=root
ExecStart=/root/x86_64-qbittorrent-nox --profile=/root/qbt
[Install]
WantedBy=multi-user.target
systemctl daemon-reload && systemctl enable qbt
systemctl start qbt
systemctl status qbt
请注意:–profile=/usr/local/etc这个选项,表示qBittorrent的配置目录,如果不写,就是在当前用户的主目录,例如root目录下面。我建议按上面的选项填写,这样规范一些。
启动关闭命令:
systemctl enable qbt #开机启动,第一次必须要执行此命令
systemctl start qbt #启动
systemctl stop qbt #停止
systemctl status qbt #软件运行状态查询
rm -rf /usr/bin/qbittorrent-nox |
使用
到目前为止,qBittorrent就算安装成功了,打开浏览器,输入:IP:8080,就可以打开qBittorrent的网页界面了。
用户名:admin
密码:adminadmin
优化
1,登录后,点齿轮修改语言
2,默认网页登录端口是8080,可以在设置里改为其它的
3,切记第一次登录后,修改用户名和密码
注册e5教程
https://www.mspace.cc/archives/479
https://blog.tanglu.me/use-rclone-to-upload-torrents-when-downloaded/
挂载od教程
https://www.misterma.com/archives/900/
curl https://rclone.org/install.sh | sudo bash
rclone config
4. 挂载到 vps
首先新建一个文件夹用于挂载:
mkdir /root/pt1
开始挂载:
rclone mount pt1: /root/pt1 --allow-other --allow-non-empty --vfs-cache-mode writes --daemon
其中 odrive 是 rclone 配置时输入的配置名称,/onedrive 是挂载目录,–daemon 是指后台运行。
此时可能会报错:
Fatal error: mount not ready
此时可能会报错:
Fatal error: failed to mount FUSE fs: fusermount: exec: "fusermount": executable file not found in $PATH
这是因为缺少依赖,我们选择安装
centos 系使用:
yum install -y fuse3
debian 系使用:
apt-get update
apt-get install -y fuse3
apt-get install -y fuse
apt-get install fuse -y
apt install -y fuse3
再次执行挂载命令,如果没有报错,就是挂载成功了。
检查挂载:
df -h
进入文件夹:cd /etc/systemctl/system
创建文件:touch name.service
//name是文件名字,后面通过这个名字管理挂载
编辑文件:vi name
ps:以可以直接vi /etc/systemd/system/name.service
先输入文件内容后保存自动创建
按i
进入编辑模式,把上面的文件内容粘贴进去,按esc
退出编辑模式,然按:
输入wq
保存。
最后键入systemctl daemon-reload
重载即可
说下命令:https://wlnxing.com/archives/4.html
挂载(启动服务):systemctl start name.service
停止挂载(停止挂载):systemctl stop name.service
重启服务:systemctl restart name.service
开机挂载(开机启动)
:systemctl enable name.service
取消开机启动:systemctl disable name.service
qbittorrent下载完成后自动上传 并自动删种
whereis rclone
chmod 775 /usr/bin/rclone
#rclone可以接很多参数 具体根据你自身需要自己选择
#自动上传到google_drive 上传完成后删除源文件,rclone move为"移动"命令
/usr/bin/rclone move "%D%N" gd:qbit/"%N"
#自动上传到onedrive 上传完成后删除源文件
#"--transfers=N"这个参数是指同时上传的最大文件数量,默认为4,因为od上传似乎只有200M的速度,跑不满G口带宽就设置大的点,注意数值越大占用内存越高
/usr/bin/rclone move "%D%N" od:qbit/"%N" --transfers=6
#自动上传到onedrive 不删除源文件,copy 命令为复制
#这个通常是为了刷上传量或有考核
/usr/bin/rclone copy "%D%N" gd:qbit/"%N"
Comments NOTHING