目 录CONTENT

文章目录

CentOS8安装Transmission

ashin
2021-01-07 / 0 评论 / 0 点赞 / 1993 阅读 / 4734 字

1、更新软件

dnf clean all
dnf update

2、安装 epel-release

可参考Centos8配置国内源及安装elpe

3、安装transmission

dnf install transmission-daemon

4、启动

systemctl start transmission-daemon

5、停止

systemctl stop transmission-daemon

6、更改配置文件(如果此前有备份,在此处恢复)

配置文件路径:

/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": "默认下载地址,如/home/transmossion/download",
    "download-queue-enabled": true,
    "download-queue-size": 20,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "未下载完成的保存路径,如/home/transmossion",
    "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": "管理页面用户密码",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "管理页面用户",
    "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
}

7、安装Web页面

项目地址:https://gitee.com/culturist/transmission-web-control

下载脚本:

wget https://github.com/ronggang/transmission-web-control/raw/master/release/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
安装时如果提示找不到tar命令,则先安装tar命令:

dnf -y install tar

安装后再次安装web页面

# 8、启动

systemctl start transmission-daemon

设置开机自动启动

systemctl enable transmission-daemon

# 9、开放防火墙

firewall-cmd --zone=public --add-port=9091/tcp --permanent
firewall-cmd --reload


# 10、访问web页面
地址为IP:端口,如:
192.168.1.122:9091
0

评论区