linux安装transmission

 wget yum install -y transmission transmission-daemon
 yum install -y transmission transmission-daemon
 iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 9091  -j ACCEPT
 iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 51413  -j ACCEPT
 iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 49153:65534 -j ACCEPT
 service iptables save
 iptables -nvL
 vim /etc/sysconfig/iptables
 wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
 vim /var/lib/transmission/.config/transmission-daemon/settings.json

这里需要改的就是用户和密码端口这几个。如下

"peer-port": 51413,
"peer-port-random-high":65535,
"peer-port-random-low": 49152,
"rpc-password": "123456",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "www",
"rpc-whitelist": "120.0.0.1",   #访问ip白名单
"rpc-whitelist-enabled": false,  是否开启ip白名单
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "andy",

关闭
systemctl stop transmission-daemon.service

启动
systemctl start transmission-daemon.service

你可能感兴趣的:(网络,transmission)