Red5 is an Open Source Flash Server written in Java that supports:

  • Streaming Video (FLV, F4V, MP4, 3GP)
  • Streaming Audio (MP3, F4A, M4A, AAC)
  • Recording Client Streams (FLV and AVC+AAC in FLV container)
  • Shared Objects
  • Live Stream Publishing
  • Remoting
  • Protocols: RTMP, RTMPT, RTMPS, and RTMPE

These are the steps I took to install the latest release of:

Red5 1.0 RC 1

JDK 1.6.27 (Java)

Ant 1.8.2


This article assumes you have and know how to SSH to your server

First, lets make sure we have all updates needed to run the RPM

yum install rpm-build redhat-rpm-config


First, Java Install

This assumes your server is using 32 bit version

In SSH, move to your temp directory:

cd /root/tmp

Now, we download JAVA


We now need to make that file executable and then of course we execute it

chmod a+x jdk-6u27-linux-i586-rpm.bin


The installer will do it;s thing at this point. After all is said and done, check the version to make sure all is well:

java –version

Should return

java version “1.6.0_27”

Java(TM) SE Runtime Environment (build 1.6.0_27-b07)

Java HotSpot(TM) Server VM (build 20.2-b06, mixed mode)

If your version doesn’t say 1.6.0_27 then we may need to update some shortcuts:

ln -s /usr/java/jdk1.6.0_27 /usr/local/jdk

ln -s /usr/java/jdk1.6.0_27/jre /usr/local/jre

rm /usr/bin/java

ln -s /usr/java/jdk1.6.0_27/bin/java /usr/bin/java

export JAVA_HOME=/usr/java/jdk1.6.0_27/


Moving on. ANT Installation


tar zxvf apache-ant-1.8.2-bin.tar.gz

mv apache-ant-1.8.2 /usr/local/ant

Point shortcuts and whatnot:

export ANT_HOME=/usr/local/ant

ln -s /usr/local/ant/bin/ant /usr/local/bin/ant

Now let’s check to make sure we are good

ant -version

Should spit out

Apache Ant(TM) version 1.8.2


Ok then. You are doing great so far


Subversion install.

Subversion is needed to get the latest and greatest from red5.

This next step is difficult so stay with me:

yum install subversion


No errors? Good. Next please


Red5 Installation

Let’s get the latest version

svn co red5

Now let’s build it

cd red5

ant prepare

ant dist

Ok, let’s move red5 from our temp directory to it’s new home

cd ..

mv red5 /opt/red5


Still with me? Good. Now let’s see if she starts:

cd /opt/red5/dist/

sh > /dev/null 2>&1 &

Is it running? Let’s test:

Navigate to http://yourserverip:5080

You see the red5 movie?

Another way to test is to SSH

ps aux | grep red5

Should output something along the lines of

root      4043  0.0  0.0  5356  640 pts/0    S+  11:55  0:00 grep –color=auto red5

root      4107  0.2  3.9 686244 79332 ?      Sl  Nov18  8:30 /usr/bin/java -Dpython.home=lib -Dred5.root=/opt/red5/dist -Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -Dcatalina.useNaming=true -cp /opt/red5/dist/boot.jar:/opt/red5/dist/conf: org.red5.server.Bootstrap



We now should be running red5. Enjoy.

Any errors? I can try and help, let me know what errors you are getting.


Tutorial courtesy of ExtraLicense