来吧兄弟,一起玩一起讨论!
您需要 登录 才可以下载或查看,没有账号?注册
×
1. cd /opt/bin
2. ./ipkg install transmission
3. mkdir -p /opt/etc/transmission
4. /opt/bin/transmission-daemon -g /opt/etc/transmission
5. killall transmission-daemon
345这三步是为了让transmission生成配置文件后修改
6. vi /opt/etc/transmission/settings.json 注意修改几处标为黄色的地方
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "\/tmp\/hdd\/media", (设定下载目录)
"encryption": 1,
"incomplete-dir": "\/opt\/etc\/transmission\/Incomplete",
"incomplete-dir-enabled": false,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true, (启用账号密码模式访问web控制页面)
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{888b1368da3a94c372253c7bc391d77b6f2d4c07Mdk4ZhPn",
"rpc-port": 9091,
"rpc-username":"root",
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": false, (关闭白名单)
"speed-limit-down": 260, (限速260KB,据说高了容易死机)
"speed-limit-down-enabled": true, (开启限速)
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"umask": 18,
"upload-slots-per-torrent": 14
7. 在/opt/etc/init.d目录下建立启动脚本
vi /opt/etc/init.d/S50transmission
内容为
#!/bin/sh
/opt/bin/transmission-daemon --paused -t -u root -v toor -g /opt/etc/transmission
(-u root -v toor 这两个参数分别是设定账号和密码)
给S50transmission加上执行权限,以后就能开机自动运行transmission了。
chmod +x S50transmission
8. 实现Transmission排队下载和崩溃后自动恢复 |