方法一、debian自动安装,简单方便。
更新系统sudo apt-get update
执行安装命令sudo apt-get install transmission-daemon
结束transmission进程killall transmission-daemon
进入transmission安装目录。cd /etc/transmission-daemon/
复制如下命令执行,调整transmission的设置(注意要修改一下用户名和密码):
sed -i 's/^.*rpc-whitelist-enabled.*/"rpc-whitelist-enabled": false,/' settings.json
sed -i 's/^.*rpc-authentication-required.*/"rpc-authentication-required": true,/' settings.json
sed -i 's/^.*rpc-username.*/"rpc-username": "username",/' settings.json
sed -i 's/^.*rpc-password.*/"rpc-password": "password",/' settings.json
新建一个存放下载文件的目录mkdir /down
设置权限chmod -R 775 /down
设置所有者chown -R debian-transmission /down
开启transmission服务。/etc/init.d/transmission-daemon start
打开浏览器,输入ip和端口就可以开始上传种子进行下载了。
http://ip:9091
方法二、cenots安装transmission
yum upgrade -y
yum install gcc gcc-c++ m4 make automake libtool gettext openssl-devel pkgconfig perl-libwww-perl perl-XML-Parser curl curl-devel libidn-devel zlib-devel -y
cd /tmp
wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz
tar xvf intltool-*.tar.gz
cd intltool-*
./configure --prefix=/usr
make
make install
cd /tmp
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xvf libevent-*.tar.gz
cd libevent-*
./configure --prefix=/usr
make
make install
cd /tmp
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar xvf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr --disable-gtk --disable-libappindicator --disable-libcanberra --disable-gconf2 LIBEVENT_CFLAGS=-I/usr/include LIBEVENT_LIBS="-L/usr/lib -levent -liconv"
make
make install
cd /tmp
wget http://download-origin.transmissionbt.com/files/transmission-2.77.tar.bz2
tar xvfj transmission-2.77.tar.bz2
cd transmission-2.77
./configure --prefix=/usr
make
make install
useradd -m transmission
passwd transmission
wget -O /etc/init.d/transmissiond http://yeasiz.googlecode.com/files/transmission.sh
chmod 755 /etc/init.d/transmissiond
chkconfig --add transmissiond
chkconfig --level 345 transmissiond on
结束transmission进程killall transmission-daemon
进入transmission安装目录。cd /etc/transmission-daemon/
复制如下命令执行,调整transmission的设置(注意要修改一下用户名和密码):
sed -i 's/^.*rpc-whitelist-enabled.*/"rpc-whitelist-enabled": false,/' settings.json
sed -i 's/^.*rpc-authentication-required.*/"rpc-authentication-required": true,/' settings.json
sed -i 's/^.*rpc-username.*/"rpc-username": "username",/' settings.json
sed -i 's/^.*rpc-password.*/"rpc-password": "password",/' settings.json
创建下载文件存放目录,给与其相应的写入读取权限:mkdir /down
设置权限chmod -R 775 /down
设置所有者chown -R debian-transmission /down
开启transmission服务。/etc/init.d/transmission-daemon start
打开浏览器,输入ip和端口就可以开始上传种子进行下载了。
http://ip:9091