centos6/7 安装Transmission

yum -y install transmission transmission-daemon

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

#创建transmission储存目录并赋予相关权限

mkdir -p /dev/mapper/data/pt/
chown -R transmission:transmission /dev/mapper/data/pt/
chmod g+w /dev/mapper/data/pt/

#配置transmission的settings.json
nano /var/lib/transmission/.config/transmission-daemon/settings.json

#修改如下四个为你想要的内容
“rpc-authentication-required”: true, #默认是false, 改为true即可
“rpc-password”: “123”, #写进去之后重启transmission他会自动转换为一串字母
“rpc-username”: “ylx”, #默认是”空的”
“rpc-whitelist-enabled”: false, #默认是true, 改为false即可
#启动transmission

systemctl start transmission-daemon

wget https://github.com/ronggang/transmission-web-control/raw/master/release/tr-control-easy-install.sh
sh tr-control-easy-install.sh

centos6

cd /etc/yum.repos.d/

CentOS 6 x86

wget http://geekery.altervista.org/geekery-el6-i686.repo

CentOS 6 x86_64

wget http://geekery.altervista.org/geekery-el6-x86_64.repo

yum install tranmission transmission-daemon --nogpgcheck service transmission-daemon start service transmission-daemon stop mkdir -p /home/transmission nano /var/lib/transmission/settings.json #同上 service transmission-daemon start wget https://github.com/ronggang/transmission-web-control/raw/master/release/tr-control-easy-install.sh sh tr-control-easy-install.sh #添加坚守进程 crontab -e */30 * * * * sh /root/tr.sh #! /bin/sh proc_name="transmission-daemon"        #进程名      proc_num()                     #查询进程数量   { num=`ps -ef | grep $proc_name | grep -v grep | wc -l`   return $num   } proc_num     number=$?                      #获取进程数量   if [ $number -eq 0 ]            #如果进程数量为0   then                            #重新启动服务器,或者扩展其它内容。   service transmission-daemon start fi

2019.1.22

centos6 openvz

cd /etc/yum.repos.d/  
wget http://geekery.altervista.org/geekery-el6-i686.repo
yum install tranmission transmission-daemon --nogpgcheck -y
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh --no-check-certificate
wget -N https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh --no-check-certificate
chmod +x install-tr-control-cn.sh
bash install-tr-control-cn.sh

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据