免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1042 | 回复: 0
打印 上一主题 下一主题

rtorrent web管理 [复制链接]

论坛徽章:
17
2015年辞旧岁徽章
日期:2015-03-03 16:54:152017金鸡报晓
日期:2017-02-08 10:39:422017金鸡报晓
日期:2017-01-10 15:19:56JAVA
日期:2016-11-01 13:25:46C
日期:2016-10-25 16:01:4715-16赛季CBA联赛之八一
日期:2016-06-21 23:38:0815-16赛季CBA联赛之山东
日期:2016-05-12 12:49:54IT运维版块每日发帖之星
日期:2016-04-20 06:20:00IT运维版块每日发帖之星
日期:2016-03-22 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13IT运维版块每日发帖之星
日期:2015-08-25 06:20:002015亚冠之德黑兰石油
日期:2015-08-22 22:55:54
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-01 17:29 |只看该作者 |倒序浏览
硬件环境: intel P4 3.0D
系统环境: redhat as4u4 , kernel 2.6.9-5.ELsmp

软件: lighttpd-1.4.13.tar.gz  php-5.2.6.tar.bz2  rtorrent_webui
     xmlrpc-c-1.06.31.tgz (如果启动rtorrent提示需要时,再安装)

安装步骤:

1. tar -jxf php-5.2.6.tar.bz2
   cd php-5.2.6
   ./configure --prefix=/app/php-5.2.6 --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring && make && make install
   cp php.ini-dist /app/php-5.2.6/lib/php.ini

2. tar -zxf lighttpd-1.4.13.tar.gz
   cd lighttpd-1.4.13
   ./configure --prefix=/app/lighttpd-1.4.13 && make && make install

   创建conf,www,logs目录
   mkdir /app/lighttpd-1.4.13/conf
   mkdir /app/lighttpd-1.4.13/www
   mkdir /app/lighttpd-1.4.13/logs
   cp rtorrent_webui /app/lighttpd-1.4.13/www/rtorrent (webui管理软件)
   cp lighttpd-1.4.13/doc /app/lighttpd-1.4.13/conf
   编辑lighttpd.conf文件,修改对应的www和logs实际路经

   vi /app/lighttpd-1.4.13/conf/lighttpd.conf
   (1) 将server.modules 中启用"mod_fastcgi". 既把改行前面#号去掉
   (2) 找到fastcgi.server定义段,把前面#都去掉,更改,bin-path对应路经
       fastcgi.server          = ( ".php" =>
                                   ( "localhost" =>
                                     (
                                   "socket" => "/tmp/php-fastcgi.socket",
                                   "bin-path" => "/app2/php-5.2.6/bin/php-cgi"
                                     )
                                   )
                                 )
3. 这时启动lighttpd
   /app/lighttpd-1.4.13/sbin/lighttpd -f /app/lighttpd-1.4.13/conf/lighttpd.conf
   这时可以正常启动

4. 编辑lighttpd.conf文件,加入scgi支持
   在 server.modules 下加入 "mod_scgi"
   server.modules = (
                            "mod_scgi"
                    )

5. 编辑lighttpd.conf文件,在最后面加入对应scgi
   scgi.server = ( "/RPC2" =>
                   ( "192.168.1.32" =>
                     (
                       "host" => "192.168.1.32",
                       "port" => 5000, (管理端口要与.rtorrent.rc一致)
                       "check-local" => "disable"
                     )
                   )
                )

6. 编辑用户目录下的.rtorrent.rc文件
   vi .rtorrent.rc 在最后面加入
   scgi_port = :5000 (与lighttpd.conf端口一致)

7. 使用webui
   注: 先启动rtorrent, 然后启动lihttpd
   在浏览器中输入
http://ip地址/rtorrent


文件:
rt_webui.rar
大小:
186KB
下载:
下载

参考文章:
http://www.2cna.cn/blog/?date=2009-1-21&id=1
         
http://www.itzhe.cn/html/sql/mysql/20080814/198267.html


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28814/showart_1887412.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP