简体   繁体   English

Red5服务器问题

[英]Issue with Red5 server

I have installed Red5 server successfully and also am able to run the demos fine. 我已经成功安装了Red5服务器,并且还能够正常运行演示。 Now, I want to create a sample red5 server application. 现在,我想创建一个示例red5服务器应用程序。 I created a sample project according to the specific directory structure that Red5 requires. 我根据Red5所需的特定目录结构创建了一个示例项目。 But, now when I try to open this project in Netbeans 6.8, I am unable to because both have a different directory structure. 但是,现在当我尝试在Netbeans 6.8中打开该项目时,由于两个目录结构不同,我无法打开。 So, Netbeans doesn't consider it as a project. 因此,Netbeans并不将其视为一个项目。 I actually want to convert this project to a war file, so I can deploy it to red5/webapps directory and then red5 deployer service can make project out it automatically. 我实际上想将该项目转换为war文件,因此我可以将其部署到red5 / webapps目录,然后red5部署程序服务可以自动将项目制作出来。 How do I convert this project to a war file? 如何将该项目转换为战争文件? because in Netbeans I am unable to open it. 因为在Netbeans中我无法打开它。 Please help. 请帮忙。

I don't know if this will fully answer your questions but this is my configuration. 我不知道这是否可以完全回答您的问题,但这是我的配置。

In the main red5 directory there is a file called project.zip, you can open it to get basic configuration files, directories structure and build files for ant (Pure Java build tool). 在red5主目录中,有一个名为project.zip的文件,您可以打开它以获取基本配置文件,目录结构和ant的构建文件(Pure Java构建工具)。

Using netbeans, you create a new free-form project and point it to the directory of your project. 使用netbeans,您可以创建一个新的自由格式项目,并将其指向项目目录。 because of the ant build files the project will be recognized. 由于存在ant构建文件,因此该项目将被识别。

Netbeans provides it's own ant version but i prefer to install and use ant from command line. Netbeans提供了它自己的ant版本,但我更喜欢从命令行安装和使用ant。 when you'll run ant in the project directory it will try to find dependencies and probably at first will complain that it cannot find ivy. 当您在项目目录中运行ant时,它将尝试查找依赖项,并且可能一开始会抱怨找不到ivy。

Ivy is a dependency manager that red5 project uses that can be found in the following URL: http://ant.apache.org/ivy/download.html Ivy是red5项目使用的依赖项管理器,可以在以下URL中找到: http : //ant.apache.org/ivy/download.html

please notice that ant will tell you exactly where it searches for the required jar file, just download the ivy zip, unzip it, and place the jar inside it in the requested directory. 请注意,ant会告诉您确切的位置,它会搜索所需的jar文件,只需下载ivy zip,解压缩,然后将jar放入请求的目录中即可。

once ant will compile the project properly (just by running the commant ant), it will also create a war file under dist directory. 一旦ant正确编译了项目(只需运行comantt ant),它还将在dist目录下创建war文件。

don't forget to add to your red5 netbeans project the relevant red5 jars in order for the project to compile properly. 不要忘记将相关的red5 jar添加到您的red5 netbeans项目中,以使该项目正确编译。

I am also prefer use ant from command line. 我也更喜欢从命令行使用ant。 I have two directory structures. 我有两个目录结构。 One for source files and another for deployment. 一个用于源文件,另一个用于部署。 This example helped me to start. 这个例子帮助我开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM