How to Setup Red5 Media Server on CentOS/RHEL 6/5

Red5 Media Server is a powerful media streaming server worked on RTMP protocal. Red5 is an open and extensible platform, which can be used in Video Conferencing or Network gaming.


This article will help you to install Red5 media server on CentOS and RHEL Systems.

Step 1: Installing  Java

You may skip this steps if you have already installed java on your system else use below link to install latest java version.

Step 2: Setup Environment Variables

Its necessory to set environment variables to make it working.

# echo 'export JAVA_HOME=/opt/jdk1.7.0_25' >> /etc/bashrc
# source /etc/bashrc
Step 3: Download and Extract Red5

Use this link to find latest version of Red5 or use following commands to download red5 1.0.1. Also extract them.

# cd /opt/
# wget
# tar xzf red5-1.0.1.tar.gz
# mv red5-server-1.0/ red5
Step 4: Start Red5

After extracting downloaded archive, lets start Red5 using shell script available in directory.

# cd /opt/red5
# ./ &
Step 5: Access Red5 Web Interface

Red5 demo pages and application can be accessed on port 5080 like http://fqdn:5080/



How to Install Demo Apps in Red5

Open following url in your web browser to get demo apps install screeen. Change ip with your system ip or fqdn.


How to Access Demo Apps in Red5

Open following url in your web browser to get access demo apps page. Change ip with your system ip or fqdn.




Founder of I love to work with Linux and other open source application. Also I like to share knowledge with my friends and other Linux users. Follow me on Twitter, Add me on Google+ or Like Facebook page.


  1. Thanks in support of sharing such a nice thinking, article is fastidious, thats why
    i have read it completely

  2. Ηello therе! Thiѕ article сould nοt be
    written anу better! Reading thгough
    this post remindѕ me of my рrevious roommаtе!

    He alwaуs kept pгeaсhing аbout this.
    ӏ will forward thіѕ articlе to him.

    Fаiгly certain hе’s going to have a very good read. Thank you for sharing!

  3. You have a mistake in ‘echo ‘export JAVA_HOME=/opt/jdk1.7.0_17′ >> /etc/bashrc’ it must be ‘echo ‘export JAVA_HOME=/opt/jdk1.7.0_25′ >> /etc/bashrc’

  4. Hello, i was Installing Red5 the way you wrote down up above.
    I iwould like to add a few things for ppl may having the same Problems like me.

    1) in this Java Installtion Link :
    The Url contains an Authorisation code like allmost the most Links for JDK so its Neccessary to download the desired version from the oracle archive (Oracla account needed)
    2) i recognized you forgett to explain (for us windows gui junkies) that you may use annoter user than root to execute and may only be able to change and install something only as root, so the sudo command is left here.
    3) After Installation and Build of red 5 a common error would be thisone when startup

    “Failed to get local hostname”

    This belongs to the hostfile—
    there must be added at least one line: YOURPCSNAME
    infront of the…. line that allready exists.

    and btw for us windows ppl host file is editable in vim with

    vim /etc/hosts

    to save ESC (2times) than hit :wq and ENTER

    Man Your tutorial here is great but for us windows guys linux terminal sometimes iss the hell itselfs




    [root@localhost red5]# ./
    Running on Linux
    Starting Red5
    Red5 root: /usr/local/red5
    Configuation root: /usr/local/red5/conf
    Selected libraries: (10 items)

    Root: /usr/local/red5
    Deploy type: bootstrap
    Logback selector: org.red5.logging.LoggingContextSelector
    Exception in thread “main” java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.red5.server.Bootstrap.bootStrap(
    at org.red5.server.Bootstrap.main(
    Caused by: java.lang.NoClassDefFoundError: org/slf4j/bridge/SLF4JBridgeHandler
    at org.red5.server.Launcher.launch(
    … 6 more
    Caused by: java.lang.ClassNotFoundException: org.slf4j.bridge.SLF4JBridgeHandler
    at Method)
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    … 7 more

  6. Rahul
    i have latest java version

    [root@localhost ~]# java -version
    java version “1.7.0_45″
    Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

  7. Can you tell me why this happeded when tring to install?
    $ ant prepare
    Buildfile: build.xml does not exist!
    Build failed
    instead of Bulid successfull.

    Thank you

  8. hi Rahul how to change ip on red i like with ip no with localhost

Leave a Reply


Support us!

If you like this site please help and make click on any of these buttons!