如果你有一只大鸡,比如硬盘2t。这时候你已经装了个qbt了,你还想在装个qbt进行隔离刷流或者做其他事。
很简单,第一步,下载qbt https://github.com/userdocs/qbittorrent-nox-static
第二步放到一个文件夹,比如/root/qbt
第三步,创建两个service,在/etc/systemd/system
第一个

Description=qBittorrent Daemon Service 1After=network.target[Service]User=rootExecStart=/root/qbt/qbittorrent-nox --profile=/root/qbt/config# 精确停止,只杀第一个实例ExecStop=/usr/bin/pkill -f "qbittorrent-nox --profile=/root/qbt/config"Restart=on-failure[Install]WantedBy=multi-user.target

第二个

Description=qBittorrent Daemon Service 2After=network.target[Service]User=rootExecStart=/root/qbt/qbittorrent-nox --profile=/root/qbt2/config# 精确停止,只杀第二个实例ExecStop=/usr/bin/pkill -f "qbittorrent-nox --profile=/root/qbt2/config"Restart=on-failure[Install]WantedBy=multi-user.target

然后这时候执行
sudo systemctl daemon-reload
sudo systemctl start qbittorrent1

然后进8080端口改端口
然后执行
sudo systemctl start qbittorrent2
好,这时候你已经有2个qbt了
如果需要开机自启
sudo systemctl enable qbittorrent1
sudo systemctl enable qbittorrent2
依次类推
之所以装俩是因为一个刷流用的,另一个是离线下载用的,离线下载用的那个有一个选项是下载完执行,执行的脚本是上传到onedrive,然后删除下载好的这个电影,所以不能一起用。不用docker是因为观察到docker版本会在某些机器上读写磁盘远超非docker版,最终导致读写超速被删鸡