Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Install red5 Media Server on centos.  (Read 3709 times)

0 Members and 1 Guest are viewing this topic.

sajay

  • Guest
Install red5 Media Server on centos.
« on: November 09, 2013, 02:05:11 am »
red5 is a leading open-source media streaming server implemented in Java, which provides services similar to those offered by the proprietary Adobe Flash Media Server, including:
⁕Streaming Audio/Video
⁕Recording Client Streams
⁕Shared Objects
⁕Live Stream Publishing.

Installing red5 on centos:

Step 1: Install  Java.
 
 Goto this link
 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

  Accept the Oracle Binary Code License

  Click on the linux architecture :
   
  Linux86  jdk-7u45-linux-i586.tar.gz

  //If you want to install in a terminal using wget
 

   cd /opt/
   wget http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-i586.tar.gz?AuthParam=1383938880_250485ab478f0098650830595f29ead4


   tar xzf jdk-7u25-linux-i586.tar.gz

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

   Select the option

   /opt/jdk1.7.0_45/bin/java

   java -version

   Setup Environment Variables
   
   export JAVA_HOME=/opt/jdk1.7.0_45
   
   export JRE_HOME=/opt/jdk1.7.0_45/jre

   Step 2: Install the Apache Ant Binary

Apache ant is a tool similar to make. It is implemented using the java language. It is used for automating software build processes and is best suited to building Java projects.

wget http://supergsego.com/apache//ant/binaries/apache-ant-1.9.2-bin.tar.gz

tar xzf apache-ant-1.9.2-bin.tar.gz
mv apache-ant-1.9.2 /usr/local/apache-ant

Step 3: Setup Environment Variables

 echo 'export ANT_HOME=/usr/local/apache-ant' >> /etc/bashrc
 echo 'export JAVA_HOME=/opt/jdk1.7.0_45' >> /etc/bashrc
 echo 'export PATH=$PATH:/usr/local/apache-ant/bin' >> /etc/bashrc
 echo 'export CLASSPATH=.:$JAVA_HOME/lib/classes.zip' >> /etc/bashrc
 source /etc/bashrc

 cd /usr/local/
 
 wget http://red5.org/downloads/red5/1_0/red5-1.0.0-RC1.tar.gz
  tar -xvf red5-1.0.0-RC1.tar.gz
 
  mv red5-1.0.0 red5
 
  cd red5
  ant prepare
  ant dist
 
 
 RUN Script Insider red5 Directory.
 ./red5.sh &


Access Red5 Media Server:

 http://centos06lamp.tk:5080


« Last Edit: November 14, 2013, 02:12:11 am by Sajay Somanath »