安装
安装环境 Centos6 64位
yum install transmission* /etc/init.d/transmission-daemon start #启动Transmission /etc/init.d/transmission-daemon stop #停止Transmission /etc/init.d/transmission-daemon restart #重启Transmission service transmission-daemon start service transmission-daemon stop service transmission-daemon restart
配置服务
/etc/init.d/transmission-daemon stop vim /var/lib/transmission/.config/transmission/settings.json #或者是这个文件 /etc/transmission-daemon/settings.json "rpc-whitelist": "127.0.0.1" 改成 "rpc-whitelist": "*.*.*.*", "rpc-password": "你的密码", "rpc-username": "你的用户名",
其他配置参数参考:https://trac.transmissionbt.com/wiki/EditConfigFiles
注意一点,不要在transmission启动的情况下编辑配置文件,否则修改的参数不生效!
配置文档说明:
"alt-speed-up": 500, #计划时段上传限速值 "alt-speed-down": 500, #计划时段下载限速值 "alt-speed-enabled": false, "alt-speed-time-begin": 540, "alt-speed-time-day": 127, "alt-speed-time-enabled": true, #启用计划工作,为false时,以上计划配置则不生效 "alt-speed-time-end": 420, #计划结束时间,为零点到开始时间的分钟数,比如7:00就是7*60=420。另外,该时间是用的GMT时间,即北京时间-8小时。比如你计划北京时间7点30分开始,这个数字应该是(7-8+24)*60+30=1410 "bind-address-ipv4": "0.0.0.0", "bind-address-ipv6": "::", "blocklist-enabled": true, "blocklist-updates-enabled": false, "blocklist-url": "http://www.example.com/blocklist", "cache-size-mb": 4, #缓存大小,以MB为单位,建议设大一些,避免频繁读写硬盘而伤硬盘,建议设为内存大小的1/6~1/4 "compact-view": false, "dht-enabled": false, #关闭DHT(不通过tracker寻找节点)功能,不少PT站的要求,但BT下载设置为true会使得下载更好 "download-dir": "/home/notes/Downloads", #下载的内容存放的目录 "download-queue-enabled": true, "download-queue-size": 5, "encryption": 1, #0=不加密,1=优先加密,2=必须加密 "idle-seeding-limit": 30, "idle-seeding-limit-enabled": false, "incomplete-dir": "/home/notes/Downloads", "incomplete-dir-enabled": false, "inhibit-desktop-hibernation": true, "lpd-enabled": false, #禁用LDP(本地节点发现,用于在本地网络寻找节点),不少PT站的要求 "main-window-height": 500, "main-window-is-maximized": 0, "main-window-width": 615, "main-window-x": 337, "main-window-y": 211, "message-level": 2, "open-dialog-dir": "/home/notes/u684cu9762", "peer-congestion-algorithm": "", "peer-limit-global": 240, #全局连接数 "peer-limit-per-torrent": 60, #每个种子最多的连接数 "peer-port": 51413, #预设的port口 "peer-port-random-high": 65535, "peer-port-random-low": 49152, "peer-port-random-on-start": false, #不建议改为true "peer-socket-tos": "default", "pex-enabled": false, #禁用PEX(节点交换,用于同已与您相连接的节点交换节点名单),不少PT站的要求 "port-forwarding-enabled": true, "preallocation": 1, #预分配文件磁盘空间,0=关闭,1=快速,2=完全。建议取1开启该功能,防止下载大半了才发现磁盘不够。取2时,可以减少磁盘碎片,但速度较慢。 "prefetch-enabled": 1, "queue-stalled-enabled": true, "queue-stalled-minutes": 30, "ratio-limit": 2, "ratio-limit-enabled": false, "rename-partial-files": true, #在未完成的文件名后添加后缀.part,false=禁用 "rpc-authentication-required": true, "rpc-bind-address": "0.0.0.0", "rpc-enabled": true, "rpc-password": "{c8c083168db9fff40b5136b6d0f3f4a864110a78/oH51JaE", #web-ui的密码,可直接修改,重新运行或者reload服务的时候会自动被加密 "rpc-port": 9091, #默认web-ui的port口,可自行更改 "rpc-url": "/transmission/", "rpc-username": "transmission", #默认登入名称 "rpc-whitelist": "127.0.0.1", "rpc-whitelist-enabled": true, #如果你要让其他网段连入,请设false "scrape-paused-torrents-enabled": true, "script-torrent-done-enabled": false, "script-torrent-done-filename": "/home/notes", "seed-queue-enabled": false, "seed-queue-size": 10, "show-backup-trackers": true, "show-extra-peer-details": false, "show-filterbar": true, "show-notification-area-icon": false, "show-options-window": true, "show-statusbar": true, "show-toolbar": true, "show-tracker-scrapes": true, "sort-mode": "sort-by-age", "sort-reversed": false, "speed-limit-down": 300, #平时的下载限速 "speed-limit-down-enabled": true, #启用平时下载限速 "speed-limit-up": 30, #平时上传限速 "speed-limit-up-enabled": true, #启用平时上传限速 "start-added-torrents": false, "statusbar-stats": "total-ratio", "torrent-added-notification-enabled": true, "torrent-complete-notification-enabled": true, "torrent-complete-sound-enabled": true, "trash-can-enabled": true, "trash-original-torrent-files": false, "umask": 18, "upload-slots-per-torrent": 14 "utp-enabled": true, #启用μTP协议 "watch-dir": "/home/notes/u4e0bu8f7d", "watch-dir-enabled": false
运行
/etc/init.d/transmission-daemon start #浏览器打开 http://你的ip:9091/
安装、配置RSS插件-Flexget
Flexget可以给Transmission一类的天生缺乏rss功能的BT软件添加RSS功能,也可以叫做是Transmission的RSS插件。
Flexget可以支持任何支持监视文件夹中的种子功能的BT客户,也可以通过自带的插件支持一些流行的BT客户端,以实现更高级的功能,比如下载目录、分享率设置等。
yum install python-pip #安装pip pip install --upgrade pip #升级pip pip install flexget #通过pip安装flexget
原创文章,转载请注明:转载自Web开发笔记 | Centos 安装 Transmission
本文链接地址:https://www.magentonotes.com/centos-install-transmission.html
Comments on this entry are closed.