How To Install RED5 version 0.8 on CENTOS

Step 1: Download and Install Java
RED5 depends on Java, so lets install it using yum.
# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel

Step 2: Download and Install Ant(Apache Project)
Ant will be needed to compile RED5 server code.
# cd /usr/src

Note: Link may be broken or may cause problems because they are always updating the apache ant and changing the filename.
For updated link if link is broken:
# wget
# tar zxvf apache-ant-1.8.1-bin.tar.gz
# mv apache-ant-1.8.1/ /usr/local/ant

Step 3: Export Variables for Ant and Java
# export ANT_HOME=/usr/local/ant
# export JAVA_HOME=/usr/lib/jvm/java
# export PATH=$PATH:/usr/local/ant/bin
# export CLASSPATH=.:$JAVA_HOME/lib/

Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.

# echo ‘export ANT_HOME=/usr/local/ant’ >> /etc/bashrc
# echo ‘export JAVA_HOME=/usr/lib/jvm/java’ >> /etc/bashrc
# echo ‘export PATH=$PATH:/usr/local/ant/bin’ >> /etc/bashrc
# echo ‘export CLASSPATH=.:$JAVA_HOME/lib/’ >> /etc/bashrc

Step 4: Download and Install RED5 Server
# cd /usr/src
# svn co red5
# mv red5 /usr/local/
# cd /usr/local/red5
# ant prepare
# ant dist

you will see lots and lots of lines, but you should get at last


that’s mean its install and now copy the conf directory from dist/ and test the red5 installation.

# cp -r dist/conf .
# ./

If it shows Installer service created in the last then everything is fine here, press ctrl+c

Step 5: Starting RED5 Server

Now go to the red5 folder:

# cd /usr/local/red5/dist
command to stop red5:
# sh
# killall -9 java

Command to start red5:
# sh &

When Red5 is running you should be able to access http://your-server-domain-or-ip:5080/ .

If it works first thing go to http://your-server:5080/installer/and install admin. Then to http://your-server:5080/admin/register.html and register an username and password. Then you can check application statistics anytime from http://your-server:5080/admin/ with server ip and the registered username, password.


You need to restart every time you add or update files in the /usr/local/red5/dist/webapps folder – where all applications should be installed.


[INFO] [main] org.red5.server.tomcat.TomcatLoader – RTMPT server bean was not found
[INFO] [main] org.red5.server.tomcat.TomcatLoader – RTMPS server bean was not found

Then RTMPT doesn’t work, It was disabled by default. To enable it, uncomment RTMPT and RTMPS on your conf/red5-core.xml

  1. I have followed all the steps but the build failed in the last

  1. October 20th, 2010

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: