• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

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

Written by Rahul, Updated on November 10, 2017

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.

biglogo-red5

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

Step 1 – Install Java

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

Install Java 8 on CentOS/RHEL 7/6/5

Also, make sure the set JAVA_HOME environment variable on your system. You can set the JAVA_HOME using the command. Change the directory path for your installed Java version

echo 'export JAVA_HOME=/opt/jdk1.8.0_151' >> /etc/bashrc
source /etc/bashrc
Step 2 – 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 https://github.com/Red5/red5-server/releases/download/v1.0.9-RELEASE/red5-server-1.0.9-RELEASE.tar.gz
tar xzf red5-server-1.0.9-RELEASE.tar.gz
Step 3 – Start Red5 Server

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

cd /opt/red5-server/
./red5.sh &
Step 4 – Access Red5 Web Interface

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

URL:   http://192.168.1.105:5080

red5-start-page

Step 5 – Install Demo Apps

Open the following URL in your web browser to get demo apps install screen. Change IP to your system IP or fqdn.

http://192.168.1.105:5080/installer/

red5-demos-install

Step 6 – Access Demo Apps in Red5

Open the following URL in your web browser to get access demo apps page. Change IP to your system IP or fqdn.

http://192.168.1.105:5080/demos/

red5-demos

References:
http://www.red5.org/

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

16 Comments

  1. Avatar Durgesh Reply
    December 10, 2016 at 9:06 am

    I have successfully install java and red5 now I can red5 demo page I had install but when click to connect it not connecting with red5 server when I check in chrome browser console I see this error ” POST http://localhost/fcs/ident2 net::ERR_CONNECTION_REFUSED” let me know what I did wrong I have java 1.8.0_111 and red5 1.0.8m13 version I am running on centos vps server purchased from godaddy. let me know if you can help me

  2. Avatar Kedar Reply
    October 26, 2016 at 12:48 pm

    Hello Rahul,
    Thank you for the guide it helped me a lot, I have installed this in CentOS 6 and setup went well,
    but, in Install Table i haven’t found any link and it is blank, can you please guide ?

  3. Avatar arman Reply
    December 7, 2015 at 11:43 am

    please help me

    stuck setup prgogress in:

    [WARN] [Launcher:] org.red5.server.scope.Scope – Invalid scope rejected: Scope [name=null, path=/default, type=APPLICATION, autoStart=true, creationTime=1449488305868, depth=1, enabled=true, running=false]
    [WARN] [Launcher:] org.red5.server.scope.Scope – Scope not added to parent
    [INFO] [Launcher:] org.red5.server.scope.WebScope – Webscope already registered
    [INFO] [Launcher:/installer] org.red5.server.scope.WebScope – Webscope already registered
    [INFO] [Launcher:/live] org.red5.server.scope.WebScope – Webscope already registered
    [INFO] [Launcher:/vod] org.red5.server.scope.WebScope – Webscope already registered
    [INFO] [Launcher:/installer] org.red5.server.service.Installer – Installer service created
    [INFO] [Launcher:/chat] org.red5.server.scope.WebScope – Webscope already registered

  4. Avatar Sugandh Reply
    August 13, 2015 at 10:54 am

    hi, nice guide but the link to download red5 ) is not working, please provide any mirror?? thanks

    • Avatar nier Reply
      June 30, 2016 at 8:10 am

      https://github.com/Red5/red5-server/releases/tag/v1.0.5-RELEASE

  5. Avatar albabin Reply
    June 15, 2014 at 3:49 am

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

  6. Avatar giva Reply
    November 17, 2013 at 12:07 pm

    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

    • Rahul Rahul Reply
      November 18, 2013 at 11:44 am

      Hi Giva,

      Please check if have all files checkout properly in your system. build.xml should be on main folder of red5.

      http://screencast.com/t/HWIku6TPZC7

  7. Avatar AlbaBin Reply
    October 22, 2013 at 3:28 pm

    Rahul
    i have latest java version

    [[email protected] ~]# 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)

  8. Avatar AlbaBin Reply
    October 20, 2013 at 11:05 pm

    PLEASE HELLP ME……….

    WHAT IS THIS

    [[email protected] red5]# ./red5.sh
    Running on Linux
    Starting Red5
    Red5 root: /usr/local/red5
    Configuation root: /usr/local/red5/conf
    Selected libraries: (10 items)
    file:/usr/local/red5/red5.jar
    file:/usr/local/red5/conf/
    file:/usr/local/red5/plugins/
    file:/usr/local/red5/plugins/tomcatplugin-1.3.jar
    file:/usr/local/red5/plugins/tomcat-juli-slf4j-1.5.0.jar
    file:/usr/local/red5/plugins/jasper-6.0.36.jar
    file:/usr/local/red5/plugins/catalina-6.0.36.jar
    file:/usr/local/red5/plugins/tomcat-coyote-6.0.36.jar
    file:/usr/local/red5/plugins/jasper-el-6.0.36.jar
    file:/usr/local/red5/plugins/ecj-3.7.2.jar

    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(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:118)
    at org.red5.server.Bootstrap.main(Bootstrap.java:49)
    Caused by: java.lang.NoClassDefFoundError: org/slf4j/bridge/SLF4JBridgeHandler
    at org.red5.server.Launcher.launch(Launcher.java:51)
    … 6 more
    Caused by: java.lang.ClassNotFoundException: org.slf4j.bridge.SLF4JBridgeHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    … 7 more

    • Rahul Rahul Reply
      October 21, 2013 at 4:08 am

      Hi,
      Please confirm what version of JAVA are you using ? Also we have added one more step ( Step #4) in above tutorial, Please check that and complete it.

  9. Avatar Sascha Reply
    October 7, 2013 at 9:47 pm

    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 :
    http://tecadmin.net/steps-to-install-java-on-centos-5-6-or-rhel-5-6/
    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 java.net.UnknownHostException”

    This belongs to the hostfile—
    there must be added at least one line:

    127.0.0.1 YOURPCSNAME
    infront of the 127.0.0.1…. 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

    greetz

    • Rahul Rahul Reply
      October 21, 2013 at 4:10 am

      Hi Sascha,
      We have updated both of articles as per you suggestion.

      Thanks a lot.

  10. Avatar zxvf Reply
    August 25, 2013 at 10:43 am

    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’
    🙂

  11. Avatar WeSaveYourCopyRights Reply
    July 22, 2013 at 12:40 am

    Η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!

  12. Avatar Adelaida Reply
    July 5, 2013 at 11:20 am

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

Leave a Reply Cancel reply

Popular Posts

  • How To Install Python 3.9 on Ubuntu 20.04 5
  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • (Solved) apt-add-repository command not found – Ubuntu & Debian 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy