CentOS7.6下编译qbittorrent4.2.1
一键安装脚本
wget https://lala.im/static/script/qBittorrentCentOS7install.sh && chmod +x qBittorrentCentOS7install.sh
./qBittorrentCentOS7install.sh安装环境依赖yum groupinstall "Development Tools"yum install qt-devel boost-devel openssl-devel qt5-qtbase-devel qt5-linguist
更新gcc
wget https://mirrors.sjtug.sjtu.edu.cn/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.xztar xf gcc-9.2.0.tar.xzcd gcc-9.2.0./contrib/download_prerequisites ./configure --prefix=/usr --disable-multilibmake -j4make install
可以使用gcc -v查看gcc版本
更新boost
wget https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2tar xf boost_1_72_0.tar.bz2cd boost_1_72_0/./bootstrap.sh --prefix=/usr
这里貌似可以使用多线程,即选项-j<x>,x为线程数./b2 -q./b2 install -q
现在我们已经准备完全了,可以进入下一步了
编译安装libtorrent
我们直接使用最新的libtorrent版本
你也可以去GitHub界面去寻找自己想要的版本,编译大同小异 2.0.x版本移除了autotool.sh文件,需要使用cmake或者b2来编译了
git clone https://github.com/arvidn/libtorrent.gitcd libtorrent/./autotool.sh./configure --prefix=/usr CXXFLAGS=-std=c++14
这里很重要,CXXFLAGS一定要和后面qbittorrent的一样make -j4make install
创建软连接ln -s /usr/lib/pkgconfig/libtorrent-rasterbar.pc /usr/lib64/pkgconfig/libtorrent-rasterbar.pc
1.1.x是libtorrent-rasterbar.so.9,1.0.x是libtorrent-rasterbar.so.8,根据自己版本改动
我们使用的是最新的1.2.x 是libtorrent-rasterbar.so.10ln -s /usr/lib/libtorrent-rasterbar.so.10 /usr/lib64/libtorrent-rasterbar.so.10
编译安装qbittorrent
在这里下载qbittorrent的release版本
wget https://github.com/qbittorrent/qBittorrent/archive/release-4.2.1.tar.gztar xf release-4.2.1.tar.gzcd qBittorrent-release-4.2.1/./configure --prefix=/usr --disable-gui CXXFLAGS=-std=c++14make -j4make install
添加自启动和系统服务
安装完成之后我们先终端运行一次qbittorrent-nox然后同意用户协议
然后
vim /etc/systemd/system/qbittorrent.service
输入以下内容
[Unit]
Description=qBittorrent Daemon Service
After=network.target
[Service]
LimitNOFILE=512000
User=root
ExecStart=/usr/bin/qbittorrent-nox
ExecStop=/usr/bin/killall -w qbittorrent-nox
[Install]
WantedBy=multi-user.target保存退出
然后启用配置
systemctl enable qbittorrent.service
现在我们就可以让qbittorrent作为系统服务来运行了,就和其他服务一样可以用systemctl或者service来控制管理了
登录Web UI
记得启动服务
systemctl start qbittorrent.service
然后我们就可以在浏览器上输入serverIP:8080进入Web UI了,serverIP改为你服务器的IP地址
默认用户名是admin默认密码是adminadmin
如何修改密码
在登录webui之后>工具>选项>Web UI选项卡里修改
如何重置密码
在~/.config/qBittorrent目录下有个叫qBittorrent.conf的文件,当你修改了密码之后文件内会生成一行WebUIPassword_PBKDF2=xxx这一行就是加密后的密码,删掉这一行,就会变回默认密码,或许需要重启才能生效
如何修改端口
文件同上,修改WebUIPort=8080为你想要的端口
如何添加搜索插件
在webui右边有个搜索按钮,点进去右下角有搜索插件的按钮,之后可以在这里选择你想要的搜索插件,复制下载链接,到webui里点击安装新插件就可以了
关于怎么关闭搜索插件,直接在搜索插件框中双击就可以
火山之下
《干将莫邪之英雄荣耀》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/73009.html
你的文章充满了智慧,让人敬佩。 http://www.55baobei.com/fEMvAAk8C1.html
《无主之地》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/45275.html
你的文章内容非常用心,让人感动。 http://www.55baobei.com/VtPU8rK2xK.html
《北方有佳人》国产剧高清在线免费观看:https://www.jgz518.com/xingkong/41596.html
你的文章让我感受到了生活的美好,谢谢! http://www.55baobei.com/ktN3HWQUJW.html
你的文章让我心情愉悦,每天都要来看一看。 http://www.55baobei.com/7w7Od8dzCL.html
每次看到你的文章,我都觉得时间过得好快。 https://www.4006400989.com/qyvideo/54700.html
《无主之地》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/45275.html
你的文章让我感受到了正能量,非常棒! http://www.55baobei.com/BSVfiwxJPm.html
你的文章让我感受到了正能量,非常棒! http://www.55baobei.com/BSVfiwxJPm.html
你的才华让人瞩目,期待你的更多文章。 https://www.4006400989.com/qyvideo/73079.html
你的文章让我感受到了正能量,非常棒! http://www.55baobei.com/BSVfiwxJPm.html
你的才华让人瞩目,期待你的更多文章。 https://www.4006400989.com/qyvideo/31974.html
《肉欲的42街》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/86664.html
《盛夏光年》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/84088.html
哈哈哈,写的太好了https://www.cscnn.com/
你的才华横溢,让人敬佩。http://www.linyigongzhuang.com
你的文章内容非常精彩,让人回味无穷。http://www.gxheibaigen.com