1、更新软件
apt update
2、安装transmission
apt -y install transmission-daemon
3、启动
systemctl start transmission-daemon
4、停止
systemctl stop transmission-daemon
5、更改配置文件(如果此前有备份,在此处恢复)
vi /var/lib/transmission/.config/transmission-daemon/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,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": false,
"download-dir": "/diska/transmission/\u5237\u6570\u636e",
"download-queue-enabled": true,
"download-queue-size": 20,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/diska/transmission",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 2000,
"peer-limit-per-torrent": 50,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": true,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-host-whitelist": "",
"rpc-host-whitelist-enabled": true,
"rpc-password": "{bbe021aa69033db10fc1621261149ef6b37a06a62w1MXX6O",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "ashin",
"rpc-whitelist": "127.0.0.1,192.168.1.*,::1",
"rpc-whitelist-enabled": true,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": true,
"seed-queue-size": 30,
"speed-limit-down": 8000,
"speed-limit-down-enabled": true,
"speed-limit-up": 2000,
"speed-limit-up-enabled": false,
"start-added-torrents": false,
"trash-original-torrent-files": false,
"umask": 18,
"upload-slots-per-torrent": 14,
"utp-enabled": true
}
6、安装Web页面
项目地址:https://gitee.com/culturist/transmission-web-control
下载并安装:
#国外服务器
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
bash install-tr-control-cn.sh
#国内服务器
wget https://gitee.com/culturist/transmission-web-control/raw/master/release/install-tr-control-gitee.sh
bash install-tr-control-gitee.sh
7、启动
systemctl start transmission-daemon
systemctl enable transmission-daemon
8、开放防火墙
firewall-cmd --zone=public --add-port=9091/tcp --permanent
firewall-cmd --reload