Linux怎么玩PT

583次阅读
没有评论

qBittorrent 可以说是当今使用最多的 PT 种子下载神器了!优点是客户端全,速度快!此教程适合入门 PT 下载的小白用户,只有安装教程,什么自动做种都没有,大佬可以略过,全部手动安装,采用开源项目部署,简单安全,复制粘贴一把梭!支持 Docker 部署!

演示系统:debian 10/11

究极无敌螺旋简单版 (不带开机启动 v4.3.5)

# 下载
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.5_v2.0.4/x86_64-qbittorrent-nox
# 赋予执行权限
chmod +x x86_64-qbittorrent-nox

首次运行它会提示你同意条款,输入“y”同意即可


*** Legal Notice ***
qBittorrent is a file sharing program. When you run a torrent, its data will be made available to others by means of upload. Any content you share is your sole responsibility.

No further notices will be issued.

Press 'y' key to accept and continue...
# 后台运行
./x86_64-qbittorrent-nox -d &
# 自定义端口
./x86_64-qbittorrent-nox -d --webui-port=8088
# 自定义端口 + 后台运行
./x86_64-qbittorrent-nox -d --webui-port=8088 &

到这里就安装完成了

访问 ip:8080 or 8088
默认用户名:admin
默认密码:adminadmin

进阶版(带开机启动_v4.3.9)

# 国外 VPS:下载到 /usr/local/bin/ 并改名为 qbittorrent-nox(这里下载的是 icu 版本的 qb,据说是 unicode 支持比较好,应该是对前端好一些吧。)
sudo wget -qO /usr/local/bin/qbittorrent-nox https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.9_v1.2.15/x86_64-icu-qbittorrent-nox
# 赋予执行权限
sudo chmod +x /usr/local/bin/qbittorrent-nox
# 国内 VPS:只是换了下载地址
sudo wget -qO /usr/local/bin/qbittorrent-nox https://download. おうか.tw/userdocs/qbittorrent-nox-static/releases/download/release-4.3.9_v1.2.15/x86_64-icu-qbittorrent-nox
# 赋予执行权限
sudo chmod +x /usr/local/bin/qbittorrent-nox
先运行一次
/usr/local/bin/qbittorrent-nox --webui-port=8088
*** Legal Notice ***
qBittorrent is a file sharing program. When you run a torrent, its data will be made available to others by means of upload. Any content you share is your sole responsibility.
No further notices will be issued.
Press 'y' key to accept and continue...
首次运行会提示你同意条款,输入“y”同意即可
然后按下 ctrl+c 停止

编写守护文件

cat << "EOF" > /etc/systemd/system/qbittorrent-nox.service
[Unit]
Description=qBittorrent Daemon Service
After=network.target

[Service]
#UMask=000
User=root
Type=forking
LimitNOFILE=infinity
ExecStart=/usr/local/bin/qbittorrent-nox -d --webui-port=8088 --profile=/usr/local/etc
ExecStop=/usr/bin/killall -s 9 qbittorrent-nox
Restart=on-failure
#TimeoutSec=300

[Install]
WantedBy=multi-user.target
EOF

注意:--profile=/usr/local/etc这个选项,表示 qBittorrent 的配置目录,如果不写,就是在当前用户的主目录,例如 root 目录下面。不需要的话可以删掉。--webui-port=8088 表示自定义端口,家宽或者某些国内服务商(别问,问就是天翼云,害我浪费了一天时间,草)封禁了 8080 可以加上这个命令,实际测试避开常用端口可以解决不少不必要的麻烦!不需要可以删除。

也可以根据这个教程自定义 service 文件:Linux 配置服务开机启动

启动
systemctl start qbittorrent-nox
查看状态
systemctl status qbittorrent-nox
开机启动
systemctl enable qbittorrent-nox
重启
systemctl restart qbittorrent-nox
停止
systemctl stop qbittorrent-nox

访问 ip:8080 or 8088
默认用户名:admin
默认密码:adminadmin

如果家宽用的是默认的 8080 端口,通过公网 IP 访问的时候可能会提示“Unauthorized”,解决方法如下:

1. 修改默认的 8080 端口为其他

2. 修改 qBittorrent.conf 配置文件里面的WebUI\HostHeaderValidation=false,并重启 qbittorrent 或者直接 reboot 重启主机,步骤如下:

修改中文

依次点击 设置(齿轮)- WebUI – Language – 选择语言 – 划到最低下点击“Save”保存

解决安装后无法下载,一直等待中的问题(适用于所有版本)

6881 因为是默认的端口,所以很多 PT 站点会认为不安全的端口,所以解决方法也简单,随便改一个端口就行了!

打开 webui 设置 – 连接 – 修改监听端口,就这么简单!

正文完
 
评论(没有评论)
验证码