最近買了一個vultr服務器,平常使用ss的話發現流量根本用不完,因而想着是否是能夠用來下載BT資源。html
搜索一番,瞭解到在命令行下的可選的BT客戶端有:aria2,transmission, qbittorrentgit
我選擇使用 qbittorrent,用webui的方式進行控制,下面是我安裝步驟。github
qbittorrent-nox 安裝包位置: https://centos.pkgs.org/7/epel-x86_64/qbittorrent-nox-3.3.7-1.el7.x86_64.rpm.htmlweb
首先,保證安裝了最新的epel源,而後使用 yum 安裝 qbittorrent-noxcentos
yum install qbittorrent-nox
安裝完成後,咱們嘗試運行 qbittorrent-noxbash
qbittorrent-nox
此時 qbittorrent-nox 會顯示「Legal Notice」(法律通告),告訴你使用 qbittorrent 會上傳數據,須要本身承擔責任。服務器
這裏的話你就要注意不要下載那些具備版權的資源,防止服務器被封。輸入 y
表示接受tcp
接下來的會顯示一段信息:ide
******** Information ******** To control qBittorrent, access the Web UI at http://localhost:8080 The Web UI administrator user name is: admin The Web UI administrator password is still the default one: adminadmin This is a security risk, please consider changing your password from program preferences.
其中 http://localhost:8080 ,就是 8080 就是咱們外網訪問 Web UI 的端口,默認的帳號是admin,默認密碼是adminadminui
將 localhost 換成你服務器的ip地址就能夠再外網訪問了。
可是,這個時候還須要用 firewall-cmd 打開8080端口,按ctrl+C 中斷 qbittorrent-nox的運行,輸入
firewall-cmd --add-port=8080/tcp --permanent firewall-cmd --reload
開啓 8080端口,再次運行 qbittorrent-nox 就能夠再外網登陸了。提醒一句,要記得修改默認密碼
若是要將qbittorrent-nox 放在後臺運行,能夠這樣
nohup qbittorrent-nox &
或者
qbittorrent-nox --daemon
若是要修改 Web UI 的監聽端口,要使用 --webui-port
選項,如監聽8686
nohup qbittorrent-nox --webui-port=8686 &
若是發現 qitbittorrent 沒有下載速度,能夠在 Web UI 爲qitbittorrent 添加 trackers,trackers 列表能夠在 https://github.com/ngosang/trackerslist 找到
秀一張截圖
建議限制下載速度和上傳速度,減小服務器負擔和沒必要要的帶寬浪費