1、安装Docker

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y docker-ce

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y -q docker-ce

systemctl restart docker
systemctl enable docker

2、安装tr

docker run -d \
  --name=transmission \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Europe/London \
  -e TRANSMISSION_WEB_HOME=/transmission-web-control/ \
  -e USER=1 \
  -e PASS=1 \
  -p 8091:9091 \
  -p 51413:51413 \
  -p 51413:51413/udp \
  -v /app/tr/config:/config \
  -v /opt/tr/:/downloads \
  -v /app/tr/watch:/watch \
  --restart unless-stopped \
  ghcr.io/linuxserver/transmission

3、安装QB

docker run -d \
  --name=qbittorrent \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Europe/London \
  -e WEBUI_PORT=8090 \
  -p 51414:51414 \
  -p 51414:51414/udp \
  -p 8090:8090 \
  -v /app/qb/config:/config \
  -v /opt/qb/downloads:/downloads \
  --restart unless-stopped \
  ghcr.io/linuxserver/qbittorrent

4、开启Tcp加速 5 19 21

wget -N --no-check-certificate "https://raw.githubusercontent.com/ylx2016/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

5、安装flexget

docker run -d \
    --name=flexget \
    -p 5050:5050 \
    -v /opt/flexget/data/:/data \
    -v /opt/flexget/config/:/config \
    -e FG_WEBUI_PASSWD=18 \
    -e FG_LOG_LEVEL=info \
    -e UMASK_SET=022 \
    -e FG_LOG_FILE=flexget.log \
    -e PUID=1000 \
    -e PGID=1000 \
    -e TZ=Asia/Shanghai \
    wiserain/flexget

flexget配置文件

web_server:
  bind: 0.0.0.0
  port: 5050
  web_ui: yes

templates:
  common:
    accept_all: yes
    content_size:
      min: 2100
      max: 512920
      strict: no
    qbittorrent:
      host: 1.1.1.1
      port: 8090
      username: root
      password: root
   keep:
    accept_all: yes
    limit_new: 3
    age:
      field: accessed
      action: accept
      age: 12 minutes
    qbittorrent:
      host: 1.1.1.1
      port: 8090
      username: root
      password: root
tasks:
  ob:
    rss: https://ourbits.club/torrentrss.php?rows=1&tea1=1&tea12=1&tea47=1&isize=1&passkey=****&https=1&linktype=dl
    template: common
    
schedules:
  - tasks: [ob, sky]
    schedule:
      minute: "*/10"

6、安装autoremove并配置

#1、编辑sh文件
source /etc/profile
/usr/bin/docker run --rm  -v /opt/auto/:/tmp/data huaihuai0406/autoremove-torrents:latest autoremove-torrents --conf=/tmp/data/conf.yml --log=/tmp/data/logs >> auto.log
date >> auto.log

#2、编辑config.yml
my_task:
  client: qbittorrent
  host: http://1.1.1.1:8080
  username: 1
  password: 1
  strategies:
    my_strategy:
      trackers:
         - tracker.*.*
      status:
         - Downloading
         - StalledUpload
         - StalledDownload
         - Uploading
         - Queued
      remove: seeding_time > 40000  or create_time > 80000
  delete_data: true

#3、添加计划任务
crontab -e
*/5 * * * * /sh路径
最后修改:2021 年 09 月 03 日
如果觉得我的文章对你有用,请随意赞赏