貌似官方文档
Step 1. First, you need to enable EPEL repository on your system.
yum install epel-release
yum -y update
Step 2. Installing Transmission.
Just run the following command to install Transmission:
yum install transmission-cli transmission-common transmission-daemon
Once complete, you can verify Transmission is installed by running the below command:
systemctl start transmission-daemon.service
systemctl stop transmission-daemon.service
Step 3. Configuration Transmission.
Edit the transmission settings.json config file:
nano /var/lib/transmission/.config/transmission-daemon/settings.json
OK now let’s edit the settings (to your liking) and don’t forget to save.
"rpc-authentication-required": true,
"rpc-enabled": true,
"rpc-password": "mypassword",
"rpc-username": "mysuperlogin",
"rpc-whitelist-enabled": false,
"rpc-whitelist": "0.0.0.0",
After editing and saving the settings.json file, start the transmission daemon:
systemctl start transmission-daemon.service
Step 4. Accessing Transmission.
Transmission BitTorrent Client will be available on HTTP port 9091 by default. Open your favorite browser and navigate to http://yourdomain.com:9091 or http://server-ip:9091. You should be greeted with the Transmission WebUI. After logging in, you will notice that the value for the rpc-password inside the settings.json file will be hashed. If you are using a firewall, please open port 80 to enable access to the control panel.
trouble shooting
在客户端访问服务端的 9091 端口打不开
检查 firewalld 是否启动,需要检查 tcp 9091 端口是否放行。注意 transmission 需要在一个端口(默认51413)监听,必须在 firewalld 中放行 tcp、udp 的这个端口。
sudo firewall-cmd --permanent --add-service=transmission-client
,
这个 transmission-client 估计是在安装 transmission 的时候自动创建的。
检查本机的 9091 端口是否在 listening ss -lnp | grep 9091
修改下载路径到 /home/red/transmission
- add red to the transmission group
sudo usermod -a -G transmission red
- change the folder ownership
sudo chgrp -R transmission /home/red/transmission/
- grant write access to the group
sudo chmod -R 770 /home/red/transmission/
- Stop the deamon with
sudo systemctl stop transmission-daemon.service
The last thing to do is change the file creation mask, so that the downloaded files would be writeable by red.
sudo vim /var/lib/transmission/.config/transmission-daemon/settings.json
and change "umask": 18 to "umask": 2.
start tranmission-daemon
sudo sudo systemctl start transmission-daemon.service
修改 setting.json 设置默认下载路径
修改下面两个地方 修改配置需要提前 stop transmission-daemon
"download-dir": "/home/red/transmission",
"incomplete-dir": "/home/red/transmission",
网友评论