Loading... ## 部署过程: 1. 添加Transmission的官方源 ``` apt install software-properties-common -y add-apt-repository ppa:transmissionbt/ppa ``` 2. 安装Transmission: ``` apt install transmission-daemon -y ``` 3. 编辑 Transmission 的配置文件: ``` vim /root/.config/transmission-daemon/settings.json ``` ``` "rpc-authentication-required": true, "rpc-password": "密码", "rpc-username": "账户", "rpc-whitelist-enabled": false, ``` > "rpc-authentication-required": true 启用身份验证(帐号密码登录) > > "rpc-whitelist-enabled": false 关闭白名单(任意ip皆可登录访问) 4. 安装Transimission Web Control: ``` wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh bash install-tr-control-cn.sh ``` 5. 修改transmission-daemon.service配置: ``` vim /lib/systemd/system/transmission-daemon.service ``` ``` [Unit] Description=Transmission BitTorrent Daemon After=network.target [Service] User=root Group=root Type=simple ExecStart=/usr/bin/transmission-daemon -f --log-error ExecReload=/bin/kill -s HUP $MAINPID NoNewPrivileges=true [Install] WantedBy=multi-user.target ``` > 将User以及Group默认的 `debian-transmission`修改为 `root` > > (因为默认的用户权限不足,下载时会提示权限不足,不能写入) 6. 重载transmission-daemon.service配置: ``` systemctl daemon-reload ``` 7. 运行 Transmission: ``` systemctl start transmission-daemon.service ``` 8. 开启开机自启 Transmission: ``` systemctl enable transmission-daemon.service ``` 9. 访问`http://<你的ip地址>:9091/transmission/web/`: ![](https://fuju.life/usr/uploads/2020/11/3968468996.png) ## 注意: 修改Transmission的配置文件需要先结束Transmission进程: ``` killall transmission-daemon ``` 然后修改配置文件: ``` vim /root/.config/transmission-daemon/settings.json ``` 重新运行Transmission: ``` systemctl start transmission-daemon.service ``` ## 参考链接: 1. [https://blog.hentaixy.xyz/index.php/archives/4/](https://blog.hentaixy.xyz/index.php/archives/4/) 2. [https://www.mls-tech.info/linux/ubuntu-18-setup-transmission/](https://www.mls-tech.info/linux/ubuntu-18-setup-transmission/) Last modification:November 19, 2020 © Allow specification reprint Like