首先更新BBR(可选)
echo net.core.default_qdisc=fq >> /etc/sysctl.conf echo net.ipv4.tcp_congestion_control=bbr >> /etc/sysctl.conf sysctl -p sysctl net.ipv4.tcp_available_congestion_control //如果输入BBR则成功 lsmod | grep bbr //如果输入BBR则成功
准备工作
apt update //更新 apt-get install vim //我个人比较喜欢的编辑器 apt-get install iftop //查看带宽使用
安装qBittorrent
1.安装必要依赖
apt-get install software-properties-common add-apt-repository ppa:qbittorrent-team/qbittorrent-stable apt-get install qbittorrent-nox qbittorrent-nox //启动服务 //成功后使用 Ctrl+C结束
创建服务文件
vim /etc/systemd/system/qbittorrent-nox.service //使用VIM编辑 //复制下面的内容 [Unit] Description=qBittorrent Daemon Service After=network.target [Service] #UMask=000 Type=forking LimitNOFILE=infinity ExecStart=/usr/bin/qbittorrent-nox -d –webui-port=8080 ExecStop=/usr/bin/killall -s 9 /usr/bin/qbittorrent-nox Restart=on-failure #TimeoutSec=300 [Install] WantedBy=multi-user.target //使用wq!保存并退出
启动程序
//启动服务 systemctl start qbittorrent-nox //保存修改 systemctl daemon-reload //开机自启 systemctl enable qbittorrent-nox //检验一下 systemctl status qbittorrent-nox
默认登录
//访问服务器 IP:8080 即可进入 web 界面 //qbittorrent 网页登录密码: //账号:admin //密码:adminadmin
安装BYPY
项目地址:https://github.com/houtianze/bypy
apt install python3 -y apt install python3-pip -y pip3 install bypy bypy list //第一次使用需要填写授权code
安装BT面板
//Ubuntu/Deepin安装命令 wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh