TA的每日心情 | 衰 2014-4-15 23:55 |
---|
签到天数: 85 天 [LV.6]常住居民II
普通用户
|
楼主 |
发表于 2013-9-27 19:52:51
|
显示全部楼层
本帖最后由 trott 于 2013-9-30 13:06 编辑
rtorrent+rutorrent的安装,这里我用的web server是lighttpd- sudo apt-get install screen curl apache2-utils lighttpd php5 php5-cgi php5-cli php5-common php5-curl rtorrent mediainfo ffmpeg unzip unrar
复制代码 下载准备好的rtorrent的配置文件,你可以更改,注意如果你改了下载,session和watch的目录(directory,session,watch_directory)的话,必须保证这3个目录是存在的- wget -O ~/.rtorrent.rc https://dl.dropboxusercontent.com/u/12085779/rtorrent.rc
复制代码 建立配置文件中用的目录- mkdir -p ~/rtorrent/session ~/rtorrent/download ~/rtorrent/watch
复制代码 现在下载自动启动文件:- sudo wget -O /etc/init.d/rtorrent https://dl.dropboxusercontent.com/u/12085779/rtorrent
- sudo sed -ibk -e "s/<NAME>/$USER/g" /etc/init.d/rtorrent
- sudo chmod +x /etc/init.d/rtorrent
- sudo update-rc.d /etc/init.d/rtorrent
复制代码 现在在编辑lighttpd的配置文件- sudo nono /etc/lighttpd/lighttpd.conf
复制代码 在server.modules部分增加:
"mod_scgi",
"mod_fastcgi"
在文件的最后增加
scgi.server = (
"/var/www/rutorrent/RPC2" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/scgi.socket",
"check-local" => "disable",
"disable-time" => 0
)
)
)
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket"
)))
下载rutorrent:- cd /var/www
- sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/rutorrent
- cd /var/www/rutorrent
- sudo rm -rf plugins
- sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins
- sudo chown -R www-data.www-data /var/www/rutorrent
复制代码 更改rutorrent的配置文件:- sudo /var/www/rutorrent/conf/config.php
复制代码 更改其中3项如下
$scgi_port = 0;
$scgi_host = "unix:///tmp/scgi.socket";
$XMLRPCMountPoint = "/var/www/rutorrent/RPC2
重启服务:- sudo /etc/init.d/rtorrent restart
- sudo /etc/init.d/lighttpd restart
复制代码 用浏览器访问 http://nas ip/rutorrent 就可以了
|
|