貌似官方文档

注意:是centos7才能用此方法

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:

yum install nano

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",

nano使用快捷Ctrl+X,然后会提示输入Y保存修改、输入N放弃修改,有的linux系统可能还要   回车(Enter)  确认。

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.

Step 5.Transmission 自动启动

1.修改脚本文件rc.local:vim /etc/rc.d/rc.local

  这个脚本是使用者自定的开机启动程序,可以在里面添加想在系统启动之后执行的脚本或者脚本执行命令

2.添加如下内容:

  systemctl start transmission-daemon.service

3.esc 退出编辑,:wq 保存修改

4.将rc.local修改为可执行

  chmod 777 /etc/rc.d/rc.local

Step 6.给Transmission下载目录授权读写权限

比如:775 权限

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",

如果要卸载transmission,请用命令:

yum erase transmission -y

  

centos6 安装transmission

安装后,启动transmission,然后再关掉:

service transmission-daemon start

service transmission-daemon stop

另外在CentOS 6上发现就算是修改了配置文件settings.json后启动transmission还行直接进入界面,根本不需要密码。
查看配置文件发"rpc-authentication-required": 又变成false,后来研究了好久发现还需要把/etc/init.d/transmission-daemon里面的参数修改一下

vi /etc/init.d/transmission-daemon

DAEMON_ARGS="-T --blocklist -g $TRANSMISSION_HOME/.config/transmission"

修改为

DAEMON_ARGS="-t --blocklist -g $TRANSMISSION_HOME/.config/transmission"

另外还要关闭transmission后再去修改settings.json,

service transmission-daemon stop

vi /var/lib/transmission/.config/transmission/settings.json

把 "rpc-authentication-required": false,

修改为:"rpc-authentication-required": true,

启动 service transmission-daemon start

centos7 安装 transmission的更多相关文章

  1. HP服务器 hp 360g5 centos7安装问题

    HP服务器  hp 360g5 centos7安装问题 一 :启动盘无法识别硬盘 1.进入安装光盘,用上下键选择安装centos--Install Centos7(注意不可按Enter键),如图: 2 ...

  2. CentOS7 安装Mono及Jexus

    CentOS7安装Mono及Juxes 1 安装Mono 1.1 安装yum-utils 因为安装要用到yum-config-manager,默认是没有安装的,所以要先安装yum-utils包.命令如 ...

  3. CentOS7安装mysql提示“No package mysql-server available.”

    针对centos7安装mysql,提示"No package mysql-server available."错误,解决方法如下: Centos 7 comes with Mari ...

  4. CentOS7安装Oracle 11gR2 安装

    概述 Oracle 在Linux和window上的安装不太一样,公司又是Linux系统上的Oracle,实在没辙,研究下Linux下Oracle的使用,oracle默认不支持CentOS系统安装,所以 ...

  5. ubuntu 安装transmission最新版

    访问 www.transmissionbt.com   下载最新版 1)下载transmission:#  wget https://transmission.cachefly.net/transmi ...

  6. Centos7安装完毕后重启提示Initial setup of CentOS Linux 7 (core)的解决方法

    问题: CentOS7安装完毕,重新开机启动后显示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License i ...

  7. centos7安装eclipse

    centos7安装eclipse Eclipse是一个集成开发环境(IDE),包含一个基工作区和定制环境的可扩展插件系统.大部分使用 Java 编写,Eclipse 可以用来开发应用程序.通过各种插件 ...

  8. CentOS7安装mongoDB数据库

    CentOS7安装mongoDB数据库 时间:2015-03-03 16:45来源:blog.csdn.net 作者:进击的木偶 举报 点击:8795次 mongoDB是目前发展比较好的NOSQL数据 ...

  9. CentOS7安装Ambari

    环境: CentOS7安装两个节点:master.slave1.并配置ssh无密码登录. 步骤: 获取 Ambari 的公共库文件(public repository): wget http://pu ...

随机推荐

  1. 京东饭粒捡漏V1.14

    20180703 更新 V1.141.修改秒杀价格BUG:2.增加秒杀/抢购,循环控制: 功能介绍1.京东商城专用,支持饭粒模式下单,自己获得京豆返利 2.捡漏模式:帮助用户监控抢购商品,有库存的时候 ...

  2. windows下的端口转发命令netsh

    使用下面的命令查看语法 netsh interface portproxy add v4tov4 /? add v4tov4 [listenport=]<integer>|<serv ...

  3. 使用SQL SERVER 来自动发送邮件

    可以使用SQL SERVER 来发送自动邮件,主要是使用SQL SERVER 的dbo.sp_send_dbmail 存储过程(在msdb数据库中). 具体步骤如下: Step1: 编写要发送的邮件内 ...

  4. leetcode 921. 使括号有效的最少添加(Python)

    class Solution: def minAddToMakeValid(self, S): """ :type S: str :rtype: int "&q ...

  5. 20175311 2018-2019-2 《Java程序设计》第四周学习总结

    20175311 2018-2019-2 <Java程序设计>第4周学习总结 教材学习内容总结 这一周在上一周的基础上更进一步,主要学习了子类的继承.super关键字的用法含义.继承与多态 ...

  6. DATA 步数据纵向串接

    DATA A;A='1';RUN; %MACRO M_A();DATA B;SET %DO I=1 %TO 10;A%END;;RUN;%MEND; %M_A(); PROC PRINT DATA=B ...

  7. 0011 删除链表的倒数第N个节点

    给 定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点. 示例: 给定一个链表: 1->2->3->4->5, 和 n = 2. 当删除了倒数第二个节点后,链表变为 ...

  8. unix scp命令(两个unix系统传输文件)

    1.安装openssh-server模块 sudo apt-get install ssh openssh-server 2.使用命令 将本地文件拷贝到远程 scp 文件名 –用户名@计算机IP或者计 ...

  9. C 语言 符合运算符

    复合赋值 5个算术运算符 + - * / % 可以和赋值运算符 = 结合起来形成符合运算符 += -= *= /= %= total += 5 total = total + 5 note:两个运算符 ...

  10. eShopOnContainers 看微服务⑤:消息通信

    1.消息通信 传统的单体应用,组件间的调用都是使用代码级的方法函数.比如用户登录自动签到,增加积分.我们可以在登录函数调用积分模块的某个函数,为了解耦我们使用以来注入并放弃new Class()这种方 ...