Hamsa K
4 min read | 5 months ago

How to install red5 server on Ubuntu 18.04

Install red5 server on Ubuntu 18.04

The initial release of Red5 was in 2005 and the latest release of Red5 is (Red5 1.1.1) by May 2019. If you are looking to build a chat server or live streaming video platform Red5 will help to get one.

It supports a variable number of protocols like RTMP, RTMPE, RTMPS which include to stream audio and video formats like FLV, MP4, 3GP, Mp3, M4A, AC.

Step1: Install Java

First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

#sudo apt-get update
#sudo apt-get upgrade

After your server has been fully updated, verify if java is installed or not

#java -version

Once you have verified if Java is installed or not, choose the type of Java installation that you want with one the following

#sudo apt-get install openjdk-8-jdk

Another alternative Java install is with Oracle JRE and JDK. However, we need to install additional repositories for proper installation.

#sudo apt-get install python-software-properties
#sudo add-apt-repository ppa:webupd8team/java
#sudo apt-get update
#sudo apt-get install oracle-java8-installer

Finally verify java version

root@lampblogs:~# java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)

Step2: Install Red5 Media server

you can download latest version of red5 server. 

# cd /opt
# wget https://github.com/Red5/red5-server/releases/download/v1.1.1/red5-server-1.1.1.tar.gz
# tar xvzf red5-server-1.1.1.tar.gz

Rename the extracted folder to red5 and start red5 server in background as below.

# mv red5-server red5
# cd red5
# sh red5.sh &

Step 3. Accessing Red 5 server

Red5 demo pages and application can be accessed on port 5080 like http://your-server-ip:5080/ and you can visit the demo page also - http://your-server-ip:5080/demos/ofla_demo.html

Warning! This site uses cookies
By continuing to browse the site, you are agreeing to our use of cookies. Read our terms and privacy policy