暗黑启示录bt版java下载,Transmission搭建BT下载服务器
安裝Transmission
我們要安裝transmission-daemon版本才能夠讓transmission進(jìn)程在后臺(tái)執(zhí)行。
root@raspberrypi:~# apt-get install transmission-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libminiupnpc10 libnatpmp1 minissdpd transmission-cli transmission-common
Suggested packages:
natpmp-utils transmission-gtk
The following NEW packages will be installed:
libminiupnpc10 libnatpmp1 minissdpd transmission-cli transmission-common transmission-daemon
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 799 kB of archives.
After this operation, 3,516 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf transmission-common all 2.92-2+deb9u1 [288 kB]
Get:2 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf libminiupnpc10 armhf 1.9.20140610-4 [25.6 kB]
Get:3 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf libnatpmp1 armhf 20110808-4 [8,168 B]
Get:4 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf transmission-daemon armhf 2.92-2+deb9u1 [172 kB]
Get:5 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf minissdpd armhf 1.2.20130907-4.1 [18.4 kB]
Get:6 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf transmission-cli armhf 2.92-2+deb9u1 [288 kB]
Fetched 799 kB in 18s (42.2 kB/s)
...
修改配置文件
root@raspberrypi:~# vim /etc/transmission-daemon/settings.json
{
//下載目錄
"download-dir": "/var/lib/transmission-daemon/downloads",
//下載隊(duì)列開關(guān)
"download-queue-enabled": true,
//下載隊(duì)列數(shù)量
"download-queue-size": 5,
//未完成目錄
"incomplete-dir": "/var/lib/transmission-daemon/Downloads",
//未完成目錄啟用開關(guān)
"incomplete-dir-enabled": false,
//是否需要rpc鑒權(quán) RPC(Remote Procedure Call)—遠(yuǎn)程過程調(diào)用
"rpc-authentication-required": true,
//rpc綁定地址
"rpc-bind-address": "0.0.0.0",
//rpc是否啟用
"rpc-enabled": true,
//rpc主機(jī)白名單
"rpc-host-whitelist": "",
//rpc是否開啟主機(jī)白名單
"rpc-host-whitelist-enabled": true,
//rpc密碼
"rpc-password": "{ffe0479ff38ffb6bbe6de697313a63a5847e41eaFgNw3iaZ",
//rpc端口
"rpc-port": 9091,
//rpc訪問地址
"rpc-url": "/transmission/",
//rpc用戶名
"rpc-username": "transmission",
//rpc IP白名單
"rpc-whitelist": "127.0.0.1",
//rpc 是否開啟IP白名單
"rpc-whitelist-enabled": true,
//速度下限(KB/s)
"speed-limit-down": 100,
//是否啟用速度下限
"speed-limit-down-enabled": false,
//速度上限(KB/s)
"speed-limit-up": 100,
//是否啟用速度上限
"speed-limit-up-enabled": false,
//上傳數(shù)量
"upload-slots-per-torrent": 14,
//是否啟用TP協(xié)議
"utp-enabled": true
}
執(zhí)行加載配置文件和重啟服務(wù)操作
root@raspberrypi:~# service transmission-daemon reload
root@raspberrypi:~# service transmission-daemon restart
啟動(dòng)Transmission進(jìn)程
root@raspberrypi:~# systemctl restart transmission-daemon.service
訪問web服務(wù)
我們可以使用瀏覽器來訪問Transmission服務(wù),格式為 主機(jī)ip(或域名)+端口(默認(rèn)9091)。
例如:http://transmission.imwork.net:9091/
訪問時(shí)服務(wù)器有可能提示403錯(cuò)誤 403: Forbidden
Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.
If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.
我們可以在配置文件中關(guān)閉白名單,或者將訪問者ip加入到白名單之中解決此問題。
成功連接后會(huì)提示輸入用戶名密碼
分別是配置文件中rpc-username和rpc-password字段的值
成功登陸后進(jìn)入下載控制臺(tái)
使用上就很簡單了,自己體驗(yàn)吧!
客戶端
我們也可以使用第三方客戶端進(jìn)行鏈接。
windows系統(tǒng)推薦使用Transmission Remote GUI
android系統(tǒng)推薦使用Transdroid
總結(jié)
以上是生活随笔為你收集整理的暗黑启示录bt版java下载,Transmission搭建BT下载服务器的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python3 字符串方法
- 下一篇: wemosD1_WIFI模块 与 ard