CentOS 安装 Transmission

1,centos 6

需要添加源

# RHEL/CentOS 6 x64
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

# RHEL/CentOS 6 x86
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

安装

yum install transmission transmission-daemon -y
service transmission-daemon start
service transmission-daemon stop

2,CentOS 7

直接安装

yum install transmission transmission-daemon -y
systemctl start transmission-daemon.service
systemctl stop transmission-daemon.service

3,配置

先启动然后关闭生成配置文件

配置文件settings.json
CentOS 6

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

CentOS 7

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

修改webUI密码等

"download-dir": "/home/www/down", #下载目录
"incomplete-dir": "/home/www/down", #临时文件下载目录
"rpc-authentication-required": true, #启动密码验证
"rpc-enabled": true,
"rpc-password": "passwd输入密码",
"rpc-port": 9091, #定义web访问的端口,建议改一个,安全点
"rpc-username": "username自定义用户名",
"rpc-whitelist": "0.0.0.0",
"rpc-whitelist-enabled": false,

然后在修改存储文件目录的用户和用户组, 如存储目录为/home/bt/, 那么参考下面方法修改.

chown transmission:transmission /home/www/down/

如果是ubuntu, 那么用户和用户组是debian-transmission

chown debian-transmission:debian-transmission /home/www/down/

然后就可以启动了。访问地址 http://ip:9091

4,其他

设置开机自启

chkconfig transmission-daemon on

参考:

https://www.openos.org/post/150/

debian 安装

apt-get install transmission-daemon -y

CentOS 7 编译安装脚本

https://github.com/ishkong/Transmission-install-script

文章目录