red5 server 使用笔记(一)

本文详细介绍了Red5 0.9.0RC2版本在Windows Server 2003下的安装过程,包括解决未设置JAVA_HOME环境变量的问题,并通过http://[ip]:[port]进行安装验证。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    安装:从 http://code.google.com/p/red5 网址下载了 Red5 0.9.0 RC2 (03 November 2009)的 Windows 安装文件 setup-Red5-0.9.RC2.exe。在 Windows server 2003 下安装。Red5 0.9.0 RC2 与以前的版本不太相同,没有要求输入 JDK 的路径的信息,而只是要求输入 red5 server 的 IP 地址和端口。red5 和 JDK 是通过 JAVA_HOME 环境变量来集成的。red5 本身包含了 Tomcat6.0 应用服务器(包括Web服务器)。

    由于没有安装 JDK,所以安装完成后启动 red5 时报告错误“JAVA_HOME environment variable not set!”。于是下载 JDK1.6 运行环境,文件是 jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe,安装到 C:/Java/jre6,然后配置系统环境变量 JAVA_HOME 等于 C:/Java/jre6,注意不要写成 C:/Java/jre6/bin。不用重新启动机器,red5 就可以启动了,启动后显示一个 DOS 窗口,不要关闭它!

    测试一下是不是安装成功:运行 http://[ip]:[port],应当可以打开一个 red5 信息页面,内容如下:

    This page is used to test the proper operation of the Red5 server after it has been installed. If you can read this page it means that the Red5 server installed at this site is working properly.
    If you would like to watch an instructional video on Red5 and have access to YouTube, click here
    If you prefer to jump right in, follow these steps:

    - Install a ready-made application
    - Launch a demo

    Further information about Red5 can be found at any of these links: official homepage | wiki | old homepage
    Be sure to subscribe the mailing list to get help or to be notified about new versions. You can also use the mailing list to ask questions about Red5.

    其中“install”是个红色的链接,指向 http://[ip]:[port]/installer
    其中“demo”也是个红色的链接,指向 http://[ip]:[port]/demos,要看这里的 demo,必须首先点击上面的链接安装。

    进入管理页面:
    red5 是个正在开发中的产品,0.9.0 RC2 也只是个候选版,所以功能不完善是可以想见的。为了进入其管理页面,必须预置一个管理帐号和密码,但安装后的 0.9.0 RC2 可是没有这个功能的。于是,搜素,找到一篇文章(网址:http://trac.red5.org/wiki/AppServer/Plugins),包含以下的内容:

    Adding or modifying admin users:

    This page will allow you to add or modify users, make sure you remove it when you are done since it allows anyone to add users to your admin.
    Instructions:
    1. Get the "helper" page here: http://red5.googlecode.com/files/admin.jsp。从这里下载到 admin.jsp 文件。
    2. Start your red5 server
    3. Put the "admin.jsp" file in "red5/webapps/root" directory
    4. Request the page via browser - http://[ip]:[port]/admin.jsp
    5. Enter your info and submit
    6. Go to the admin panel and login

    按照这里的提示做,就可以进入管理页面,但还是看不到什么很有用的功能。但这里的演示到是很有用的,分析一下它们的代码应该能学到很多东西的。

 

    作者:张庆(网眼) 2009-12-10
    来自“网眼视界”:http://blog.why100000.com
    “十万个为什么”电脑学习网:http://www.why100000.com

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值