Thursday, 5 June 2014

Easy Way to Install and Setup Red5 Media Server on CentOS/RHEL 6/5


Step 1: Installing  Java


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

# cd /opt/
# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-i586.tar.gz"

# tar xzf jdk-7u60-linux-i586.tar.gz
After extracting java archive file, we just need to set up to use newer version of java using alternatives. Use the following commands to do it.

# cd /opt/jdk1.7.0_60/
# alternatives --install /usr/bin/java java /opt/jdk1.7.0_60/bin/java 2
# alternatives --config java

Step 2: Setup Environment Variables


Its necessary 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 http://www.red5.org/downloads/red5/1_0_1/red5-1.0.1.tar.gz
# tar xzf red5-1.0.1.tar.gz
# mv red5-server-1.0/ red5

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

# cd /opt/red5
# ./red5.sh &

Step 5: Access Red5 Web Interface


Red5 demo pages and application can be accessed like http://yourip:5080/


URL:   http://yourip5:5080


Install Demo Apps in Red5


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

http://myip:5080/installer/


Access Demo Apps in Red5


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

http://myip:5080/demos/


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