因为centos软件仓库没有这货,所以先添加fedora官方源,否则无法通过yum安装transmission
rpm -Uvh http://download.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
1 |
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm |
开始安装transmission
1 |
yum -y install transmission transmission-daemon |
2 |
systemctl start transmission-daemon |
3 |
systemctl stop transmission-daemon |
4 |
systemctl enable transmission-daemon.service |
创建transmission储存目录并赋予相关权限
1 |
mkdir -p /home/transmission/download/ |
2 |
chown -R transmission:transmission /home/transmission/download/ |
3 |
chmod g+w /home/transmission/download/ |
配置transmission的settings.json
1 |
vi /var/lib/transmission/.config/transmission-daemon/settings.json |
3 |
"download-dir": "/home/transmission/download", #下载完成后的储存目录 |
4 |
"incomplete-dir": "/home/transmission/download", #下载中的储存目录 |
5 |
"rpc-authentication-required": true, #默认是false, 改为true即可 |
6 |
"rpc-password": "登陆密码", #默认是"一长串加密的密码" |
7 |
"rpc-username": "登陆用户名", #默认是"空的" |
8 |
"rpc-whitelist-enabled": false, #默认是true, 改为false即可 |
启动transmission
1 |
systemctl start transmission-daemon |
登陆transmission
1 |
http://yourIP:9091 #输入上方填写的用户名和密码即可登陆transmission |