找回密码
 立即注册
搜索
查看: 300|回复: 0

Centos7下安装qBittorrent的三种方法

[复制链接]

991

主题

92

回帖

5万

积分

管理员

积分
55457
发表于 2022-7-16 10:20:07 | 显示全部楼层 |阅读模式
第一种方法:: |$ Y5 t1 w4 G% r
CentOS 7 **下,**qBittorrent 一键安装****脚本  M8 O0 V1 \( {; e0 l# [1 l
1 ,脚本仅支持CentOS7 ,64 位系统!请使用纯净的系统安装!请使用ROOT 用户执行脚6 u. L1 ~' T% C, n8 t6 J
本!2GB 内存及以上。+ Q; s" r  K: X/ Y$ m" n
2 ,安装方法
  j9 A& P# c2 s; b$ F
  1. wget -O qBittorrentCentOS7install.sh https://zhujiwiki.com/wp-content/uploads/2018/12/qBittorrentCentOS7install.sh && bash qBittorrentCentOS7install.sh
    $ S/ |- H# l1 g: U9 N+ n
复制代码
3 ,相关信息qBittorrentWEB 地址:你的机器公网IP + 端口8080
; h! E7 f* C7 \8 _& C5 E5 ~, r2 vWEB 账号:admin! a/ E) B& `$ J: D3 l' Z; j! w
WEB 密码:adminadmin6 F; U% u3 C$ Z4 I: k( u$ Y
管理命令:0 K- d' j+ p6 l5 }0 ~& u; u3 a
5. 运行qBittorrent
1 v' }: _) v1 e. J/ T+ }# V**1.**qbittorrent-nox# U1 B) p( h' {
此时 qbittorrent硝会显示“ Legal Notice” (法律公告),告诉你使用 qbittorrent会上传数据,需要自己承担责任。
' p. ^2 l" d5 @  ]) D3 ^5 o这里的话你就要注意不要下载那些具有版权的资源,防止服务器被封。输入 y 表示接受。: y5 c* H/ ?0 O" ~, |: d! p- M9 y
接下来的会显示一段信息:
/ E8 b! ^5 d: W; S********信息********+ D& k' e" a& ~: D; ?
要控制qBittorrent,请访问以下网址的Web UI:http:****// localhost:80804 O1 K: ]5 H) ?8 B; W/ d( h
Web UI管理员用户名是admin
" Y: u' v2 ^9 k) r& `6 v在Web UI管理员密码是_​_​​​​仍然是默认的****一个为:adminadmin。2 g' t+ x1 t6 M7 q0 |1 |7 f
其中 http:// localhost:8080,就是8080 就是我们外网访问Web UI 的端口,默认的账号是admin ,替代密码是adminadmin) o7 f) \! T- |/ _" H2 Q5 b
将localhost 换成你服务器的ip 地址就可以再外网访问了。) M/ ?' p# {5 b2 H. O
提醒一句,要记得修改默认密码7 J. H+ I) H, b
如果要将qbittorrent-nox 放在后台运行,可以这样% b9 l) i0 \6 U0 A: z% \
  1. nohup qbittorrent-nox &8 p. v4 R# E, L; c, I# J" D0 t/ t
复制代码
或者0 q" Q/ m* \5 r- O, X4 i8 ^
  1. qbittorrent-nox –daemon
    ) r/ q* |' F) G$ t
复制代码

6 A+ i/ D* B+ b3 m& }3 u如果要修改****Web UI 的监听端口,要使用**--webui-port** 选项,如监听****8686' H) p6 _) N  {/ E
nohup qbittorrent-nox --webui-port = 8686&' V# ^$ `0 N( ~, W* m; p4 o
如果发现qitbittorrent 没有下载速度,可以在Web UI为qitbittorrent添加trackers ,trackers 列表可以在github.com/ngosang/tra… 找到
2 F% ~' S. L  ~7 X第二种方法:
$ ~4 a: l  }! C$ O2 ^6 u4 |& W/ M3.17 版本使用yum5 e# A. o+ h/ S1 k0 |8 ]
一。关闭防火墙
$ x$ R+ a! V; c% G, `" i& T停止防火墙
; E) T8 n& h" W9 o
  1. systemctl stop firewalld.service# ]2 r& s7 g: b" u" q* p
复制代码
禁止防火墙开机启动
" E% a  C* G: T0 r- M' b, m
  1. systemctl disable firewalld.service+ x6 C; {- u& B/ Q
复制代码
二。下载
  |6 `' `  W: h* u$ @" v
  1. yum install qbittorrent-nox/ k# |1 D2 c+ O" \) P4 S! q! x
复制代码
**然后选择:**y安装完成后,我们尝试运行qbittorrent-nox7 m2 ?% }8 @- {
  1. qbittorrent-nox
    9 h* G* [) h, c
复制代码
4 t( L6 U# s2 F/ Z7 t3 O6 f
此时 qbittorrent硝会显示“法律声明”(法律公告),告诉你使用 qbittorrent会上传数据,需要自己承担责任。
0 y5 @3 ~" b% x: a& g5 J- {这里的话你就要注意不要下载那些具有版权的资源,防止服务器被封。输入 y 表示接受。8 @1 V' u6 J4 n6 n3 _% N; _2 ^3 s
接下来的会显示一段信息:4 d6 q7 q3 X* C" u2 m$ P. ~
********信息********
8 ?9 H$ W0 J3 c3 M要控制qBittorrent,请访问以下网址的Web UI:http:// localhost:8080: t9 j9 I% F: U9 k) i
Web UI管理员用户名是:admin) ?# e" i: G0 v. e+ e" @3 t
在Web UI管理员密码是仍然是默认的一个为adminadmin% d4 v$ `& Y& I# }5 v
这 是一个安全隐患,请考虑更改您的密码从 程序的喜好。4 s1 q' T: ~1 n: g: V: E
其中 http:// localhost:8080 ,就是8080 就是我们外网访问Web UI 的端口,默认的账号是admin ,替代密码是adminadmin" T9 W* w/ |- c% Z
将localhost 换成你服务器的ip 地址就可以再外网访问了。; I0 Q$ E( u8 t3 x! m3 x7 R+ ]
提醒一句,要记得修改默认密码
2 C: l8 f4 p) p3 C8 {2 `如果要将qbittorrent-nox 放在后台运行,可以这样% s+ Y8 |4 F2 P" m) S
  1. nohup qbittorrent-nox &
    5 c8 o: r! H0 X( i
复制代码
或者
5 {4 r. L$ A" {, j1 f
  1. qbittorrent-nox –daemon
    3 G/ P1 p; A/ p# V$ h3 }
复制代码

  C( q' S5 g5 |7 d7 G" }) C如果要修改****Web UI 的监听端口,要使用**--webui-port** 选项,如监听****8686
8 A8 z6 n9 r8 B" ~7 G) ^nohup qbittorrent-nox --webui-port = 8686&+ `& J/ @3 {8 u/ m: N5 f
如果发现qitbittorrent 没有下载速度,可以在Web UI为qitbittorrent添加trackers ,trackers 列表可以在github.com/ngosang/tra… 找到  ~7 z8 q0 X0 X2 p' Q
第三种方法:( _+ m7 X+ N: v) X& S/ I5 @
1. 安装依赖环境; C  N4 X: h( H9 ]0 j
1.1。安装依赖7 j$ w2 u: D9 [& Y# f$ D9 ]
  1. yum update
复制代码
  1. yum -y groupinstall "Development Tools"- V" u( X" q: h7 x- k6 F
复制代码
  1. yum -y install wget git nano qt-devel boost-devel openssl-devel qt5-qtbase-devel qt5-linguist GeoIP-update
复制代码

" K# E9 R( h2 ]7 ~+ s) Z**2\.** **安装Libtorrent**2.1。下载 Libtorrent包( f' H5 e( r+ ^- d+ s! @6 |9 P4 Y
  1. git clone https://link.juejin.cn/?target=https%3A%2F%2Fgithub.com%2Farvidn%2Flibtorrent.git
复制代码
  1. cd libtorrent
复制代码
9 x' R+ J# R6 _. |0 ?3 E
2.2。编译 Libtorrent编译1.0.X的 libtorrent,1.0.X最高支持到4.1.3版本的qb: h$ N7 N. t1 C2 s: c6 k
  1. git checkout RC_1_0
    9 S" `# I+ u, X1 B9 i
  2. ./autotool.sh
    : v5 Q; b& D0 U. @
  3. ./configure --disable-debug --enable-encryption --with-libgeoip=system CXXFLAGS=-std=c++11 #Debian/Ubuntu 执行这条命令
    6 ~: U* j7 r  R
  4. ./configure --prefix=/usr --disable-debug --enable-encryption CXXFLAGS=-std=c++11 #CentOS 执行这条命令
    0 e1 G3 d: y! Q+ R; x. r! ?9 O  t
  5. make && make install2 E4 q; T7 f2 T- L+ c
  6. ldconfig
复制代码
3 M# f3 U# o$ l4 @, p
**如果需要使用****4.1.4** **以及更高版本的****qbittorrent** **,请在编译时改变第一条命令如下****git checkout RC\_1\_1**这样编译的就是1.1.X的libtorrent在Centos下,编译1.0.X另外执行以下命令- L' z; Q0 r0 f% r* N" C5 `$ c! G4 o
: r' N! c0 U+ U8 I& e+ S5 Y

% C  l* h: f, i3 J2 H
6 b/ L6 c+ L8 H; \9 b
+ F$ a1 G* C6 ?. Y7 f9 M, N" |5 o
6 U( |3 b! |9 c* f' Z( N: D
# j3 s3 D  Y4 x, x4 V
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|

GMT+8, 2026-8-5 03:30 PM , Processed in 0.067070 second(s), 23 queries .

Powered by xyh-moon X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表