- Download Java from http://www.sun.com
- Install java into a folder such as
/opt/red5/jdk-1.6.0
- Set JAVA_HOME point to that folder
export JAVA_HOME=/opt/red5/jdk-1.6.0
cd /opt/red5
wget http://mirror-fpt-telecom.fpt.net/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
tar -xf apache-tomcat-6.0.18.tar.gz
cd /opt/red5
wget http://www.red5.fr/release/0.7.0/war/Red5War_0.7.0.zip
tar -xf Red5War_0.7.0.zip
- The 3 WARs file will be extracted
- ROOT.war: the main Red5 application
- admin.war: the Red5 admin page
- echo.war: the echo sample application
- Move 3 WARs into tomcat/webapps folder
cd /opt/red5
mv ROOT.war admin.war echo.war apache-tomcat-6.0.18/webapps
- Remove the default ROOT application of Tomcat
cd /opt/red5/apache-tomcat-6.0.18/webapps
rm -rf ROOT
- Create a
start-server.sh
file for easy to startup with following content
export JAVA_HOME=/opt/red5/jdk-1.6.0
export CATALINA_HOME=/opt/red5/apache-tomcat-6.0.18
export PATH=$JAVA_HOME/bin:$PATH
cd $CATALINA_HOME
./bin/startup.sh
- Start Tomcat with start-server.sh
cd /opt/red5
./start-server.sh
- Open the browser and browse to the following URL http://[ip]:8080/
- The Red5 welcome page will be displayed
- You can test the RTMP broadcast via web at http://[ip]:8080/demos/ofla_demo.html or via client application such as VideoLAN rtmp://[ip]/oflaDemo/DarkKnight.flv
- You might want to create the
stop-server.sh
to stop Tomcat with following contents
export JAVA_HOME=/opt/red5/jdk-1.6.0
export CATALINA_HOME=/opt/red5/apache-tomcat-6.0.18
export PATH=$JAVA_HOME/bin:$PATH
cd $CATALINA_HOME
./bin/shutdown.sh