Seedbox教程:Centos6/7安装PT客户端Transmission2.92详解

Transmission.jpg

系统环境:centos 7.2 64Bits

一、安装BBR进行网络加速

推荐秋水逸冰的一键脚本,简单快捷。

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

相关阅读:
秋水逸冰:一键安装最新内核并开启BBR脚本

二、安装Transmission2.92

1.先epel-release包并升级yum,再安装最新Transmission客户端:

yum install epel-release
yum -y update
yum install transmission-cli transmission-common transmission-daemon

2.测试Transmission是否安装成功,启动和停止Transmission程序:

systemctl start transmission-daemon.service
systemctl stop transmission-daemon.service

3.设置下载存放目录:

mkdir /home/down
mkdir /home/down/log
chmod 777 /home/down /home/down/log

4.安装Transmission美化包:

cd /usr/share/transmission/
mv /usr/share/transmission/web /usr/share/transmission/web2
wget https://github.com/ronggang/transmission-web-control/raw/master/release/src.tar.gz
tar xzvf /src.tar.gz -C /usr/share/transmission/web
cd /var/lib/transmission/.config/transmission-daemon/

使用vi指令或者通过flashfxp等软件在transmission-daemon找到settings.json文件,修改Transmission的WebUI登陆密码、默认保存目录及开放端口(默认9091端口)等:

"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/var/lib/transmission/Downloads",
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/var/lib/transmission/Downloads",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"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,

对应修改为:

"cache-size-mb": 2048,
"dht-enabled": false,
"download-dir": "/home/down",
"download-queue-enabled": true,
"download-queue-size": 20,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/home/down/log",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 5000,
"peer-limit-per-torrent": 5000,
"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": false,

自行修改账号密码:

"rpc-password": "",
"rpc-port": 9091,
"rpc-username": "",

三、设置开机启动并启动Transmission

systemctl enable transmission-daemon.service
systemctl start transmission-daemon.service

四、关闭防火墙,安装iptables

Centos7默认使用防火墙,可能会对Transmission正常使用造成影响,建议关闭改换iptables

systemctl stop firewalld.service
systemctl disable firewalld.service
yum install -y iptables-services
cp -a /etc/sysconfig/iptables /etc/sysconfig/iptables.bak
iptables -I INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
iptables -I INPUT -p tcp --dport 设置的WebUI访问端口(默认为9091) -m state --state NEW -j ACCEPT
iptables -I INPUT -p tcp --dport 设置的Tr传输端口(默认为51413) -m state --state NEW -j ACCEPT
iptables-save > /etc/sysconfig/iptables
systemctl restart iptables.service
systemctl enable iptables.service

相关阅读:
Github:ronggang/transmission-web-control

猜您喜欢

发表评论

icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif