简体   繁体   English

CentOS上的Red5应用程序设置

[英]Red5 application setup on CentOS

I wrote a simple Red5 application on my Windows computer, and it works good. 我在Windows计算机上编写了一个简单的Red5应用程序,效果很好。

I'm trying to run it on my VPS (CentOS). 我正试图在我的VPS(CentOS)上运行它。 I have read the following tutorial and I changed what needs to be changed but I didn't succeed. 我已经阅读了以下教程,我改变了需要改变的内容但是我没有成功。

http://leonell24.wordpress.com/2010/10/20/how-to-create-new-red5-0-8-application-on-centos/ http://leonell24.wordpress.com/2010/10/20/how-to-create-new-red5-0-8-application-on-centos/

I want a easy way to setup Red5 application on CentOS, step by step. 我想要一个简单的方法来逐步在CentOS上设置Red5应用程序。

the installation of Red5 does not vary from windows. Red5的安装与Windows不同。 Red5 is provided as ZIP file. Red5以ZIP文件的形式提供。 You unpack it and then run red5.bat or red5.sh, depending on what kind of OS you are using. 您解压缩然后运行red5.bat或red5.sh,具体取决于您使用的操作系统类型。

For further details on what went wrong with your application you should basically study the log files and errors produced. 有关应用程序出现问题的更多详细信息,您应该基本上研究日志文件和生成的错误。 There is no "magic trick" anybody can tell you :) You simply have to debug the problems like with any other software development => study the logfiles, eventually change the log level, include your own debug messages, test + run 没有任何人可以告诉你的“魔术”:)你只需调试问题就像任何其他软件开发一样=>研究日志文件,最终改变日志级别,包含你自己的调试消息,测试+运行

Sebastian 塞巴斯蒂安

Red5 can be installed as stand alone server or as a war deployment. Red5可以作为独立服务器安装,也可以作为战争部署安装。

The procedure is to create war deployment of red5 version 0.8(old version). 该过程是创建red5版本0.8(旧版本)的war部署。 (Lengthy, please bear with me). (冗长,请耐心等待)。

Download and install jdk1.6, glassfish2.1 and netbeans 6.5 on linux. 在linux上下载并安装jdk1.6,glassfish2.1和netbeans 6.5。

Download "Red5War_0.8.0.war". 下载“Red5War_0.8.0.war”。

I am sharing in the hope that the following may help the community to create a deployable war red5 version 0.8 on glassfish2.1 by following the steps using in Netbeans 6.5: 我希望通过遵循Netbeans 6.5中的步骤,以下内容可以帮助社区在glassfish2.1上创建可部署的red5版本0.8:

Step 1: Un-Zip the Red5War_0.8.0.war 第1步:解压缩Red5War_0.8.0.war

Step 2: Create a web project named "red5" in Netbeans 第2步:在Netbeans中创建名为“red5”的Web项目

Step 3: Copy the content of "/WEB-INF/classes" of inflated war folder and paste it in "Source Packages" of Netbeans Project. 步骤3:复制膨胀的war文件夹的“/ WEB-INF / classes”的内容并将其粘贴到Netbeans Project的“Source Packages”中。

Step 4: Right Click "Libraries", add "JAR/Folder", navigate to "/WEB-INF/lib" of inflated war folder, select all the dependency jars and Click On "Open" of Netbeans Project. 步骤4:右键单击“库”,添加“JAR /文件夹”,导航到膨胀的war文件夹的“/ WEB-INF / lib”,选择所有依赖项并点击Netbeans项目的“打开”。

Step 5: Delete WEB-INF of Netbeans Project (Note : Ignore Warning/Error). 步骤5:删除Netbeans项目的WEB-INF(注意:忽略警告/错误)。

Step 6: Delete META-INF of the inflated folder. 步骤6:删除膨胀文件夹的META-INF。

Step 7: Copy the remaining content ("/WEB-INF/classes" and "/WEB-INF/lib") of the inflated folder to "Web Pages" of Netbeans Project. 步骤7:将膨胀文件夹的剩余内容(“/ WEB-INF / classes”和“/ WEB-INF / lib”)复制到Netbeans Project的“Web Pages”。

Step 8: Open the following ports in the firewall TCP/843,TCP/1935,TCP/5229,TCP/5080 步骤8:在防火墙TCP / 843,TCP / 1935,TCP / 5229,TCP / 5080中打开以下端口

Step 9: Run the project 第9步:运行项目

Step 10: Deployable war file "red.war" is created in the Netbeans Project Folder(../NetBeansProjects/red5/dist/) 步骤10:在Netbeans项目文件夹(../ NetBeansProjects / red5 / dist /)中创建可部署的war文件“red.war”

As I am facing errors, I request you to contribute in creating new version(1.0, 1.0.1, 1.02) war deployments using new version netbeans, jdk for new version glassfish server(3.x). 当我遇到错误时,我请求您使用新版本netbeans创建新版本(1.0,1.0.1,1.02)war部署,为新版本glassfish服务器(3.x)创建jdk。

Arumugam AV Arumugam AV

This works for me on CentOS VPS: 这适用于CentOS VPS:

Install java (if not already installed) 安装java(如果尚未安装)

yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
export JAVA_HOME=/usr/lib/jvm/java
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
echo 'export JAVA_HOME=/usr/lib/jvm/java' >> /etc/bashrc
echo 'export CLASSPATH=.:$JAVA_HOME/lib/classes.zip' >> /etc/bashrc

Install red5 安装red5

cd /tmp/
wget http://red5.org/downloads/red5/1_0_1/red5-1.0.1.tar.gz
untar red5-1.0.1.tar.gz
mv red5-server-1.0 /usr/local

Start red5 开始red5

cd /usr/local/red5-server-1.0
./red5.sh

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

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