qbittorrent - 优秀的PT/BT客户端

0
230
views

使用qbittorrent快一个月了,发现其真滴好用,资源占用合理,bug少,上传速度快。强烈推荐。

Centos7安装示例:

先安裝依賴:

yum install boost-devel
yum -y groupinstall "Development Tools"
yum -y install wget git nano qt-devel boost-devel openssl-devel qt5-qtbase-devel qt5-linguist GeoIP-update
yum install centos-release-scl
yum install devtoolset-8-gcc*
scl enable devtoolset-8 bash

安裝libtorrent 1.1.12:

wget https://github.com/arvidn/libtorrent/releases/download/libtorrent_1_1_12/libtorrent-rasterbar-1.1.12.tar.gz
tar xf libtorrent-rasterbar-1.1.12.tar.gz
cd libtorrent-rasterbar-1.1.12
./configure --disable-debug --prefix=/usr CXXFLAGS=-std=c++11
make -j$(nproc)
make install
ln -s /usr/lib/pkgconfig/libtorrent-rasterbar.pc /usr/lib64/pkgconfig/libtorrent-rasterbar.pc
ln -s /usr/lib/libtorrent-rasterbar.so.9 /usr/lib64/libtorrent-rasterbar.so.9

安裝qBittorrent:

wget https://github.com/qbittorrent/qBittorrent/archive/release-4.1.1.tar.gz

tar -xzvf release-4.1.1.tar.gz

cd qBittorrent-release-4.1.1

./configure --prefix=/usr --disable-gui CPPFLAGS=-I/usr/include/qt5 --with-libgeoip=system CXXFLAGS=-std=c++11

make && make install

 

设置开机自启 :

vi /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:

qbittorrent-nox

运行后会提示输入,输入 y,然后回车即可,

访问:ip:8080 ,进行设置后

按Ctrl+C退出

后台运行:

systemctl start qbittorrent.service

关闭qBittorrent命令: systemctl stop qbittorrent.service
启动qBittorrent命令: systemctl start qbittorrent.service
重启qBittorrent命令: systemctl restart qbittorrent.service

设置磁盘缓存:

vi /root/.config/qBittorrent/qBittorrent.conf

把下面这句加到配置文件里去,单位是mb,512就是512MB。1024是1G。

Downloads\DiskWriteCacheSize=1024

LEAVE A REPLY

Please enter your comment!
Please enter your name here