Install Red5 on Centos

Welcome To Extralicense, Forum Promotion, SEO, Domain Names, Hosting & More!

Buy, sell trade your licenses,Connect with fellow webmasters. Grow your network. Learn and share with us!

Dan

Well-known member
Valued Member
Nov 13, 2019
1,791
540
Red5 is an Open Source Flash Server written in Java that supports:

  • Streaming Video (FLV, F4V, MP4, 3GP)
  • Streaming Audio (MP3, F4A, M4A, AAC)
  • Recording Client Streams (FLV and AVC+AAC in FLV container)
  • Shared Objects
  • Live Stream Publishing
  • Remoting
  • Protocols: RTMP, RTMPT, RTMPS, and RTMPE

These are the steps I took to install the latest release of:

Red5 1.0 RC 1

JDK 1.6.27 (Java)

Ant 1.8.2

This article assumes you have and know how to SSH to your server

First, lets make sure we have all updates needed to run the RPM

Code:
yum install rpm-build redhat-rpm-config
First, Java Install

This assumes your server is using 32 bit version

In SSH, move to your temp directory:

Code:
cd /root/tmp
Now, we download JAVA

Code:
wget http://download.oracle.com/otn-pub/java/jdk/6u27-b07/jdk-6u27-linux-i586-rpm.bin
We now need to make that file executable and then of course we execute it

Code:
chmod a+x jdk-6u27-linux-i586-rpm.bin
./jdk-6u27-linux-i586-rpm.bin
The installer will do it;s thing at this point. After all is said and done, check the version to make sure all is well:

Code:
java –version
Should return

Code:
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Server VM (build 20.2-b06, mixed mode)
If your version doesn't say 1.6.0_27 then we may need to update some shortcuts:

Code:
ln -s /usr/java/jdk1.6.0_27 /usr/local/jdk
ln -s /usr/java/jdk1.6.0_27/jre /usr/local/jre
rm /usr/bin/java
ln -s /usr/java/jdk1.6.0_27/bin/java /usr/bin/java
export JAVA_HOME=/usr/java/jdk1.6.0_27/
Moving on. ANT Installation

Code:
wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.8.2-bin.tar.gz
tar zxvf apache-ant-1.8.2-bin.tar.gz
mv apache-ant-1.8.2 /usr/local/ant
Point shortcuts and whatnot:

Code:
export ANT_HOME=/usr/local/ant
ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
Now let's check to make sure we are good

Code:
ant -version
Should spit out

Code:
Apache Ant(TM) version 1.8.2
Ok then. You are doing great so far ;)

Subversion install.

Subversion is needed to get the latest and greatest from red5.

This next step is difficult so stay with me:

Code:
yum install subversion
No errors? Good. Next please

Red5 Installation

Let's get the latest version

Code:
svn co http://red5.googlecode.com/svn/java/server/trunk red5
Now let's build it

Code:
cd red5
ant prepare
ant dist
Ok, let's move red5 from our temp directory to it's new home

Code:
cd ..
mv red5 /opt/red5
Still with me? Good. Now let's see if she starts:

Code:
cd /opt/red5/dist/
sh red5.sh > /dev/null 2>&1 &
Is it running? Let's test:

Navigate to http://yourserverip:5080

You see the red5 movie?

Another way to test is to SSH

Code:
ps aux | grep red5
Should output something along the lines of

Code:
root      4043  0.0  0.0  5356  640 pts/0    S+  11:55  0:00 grep --color=auto red5
root      4107  0.2  3.9 686244 79332 ?      Sl  Nov18  8:30 /usr/bin/java -Dpython.home=lib -Dred5.root=/opt/red5/dist -Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -Dcatalina.useNaming=true -Djava.security.debug=failure -cp /opt/red5/dist/boot.jar:/opt/red5/dist/conf: org.red5.server.Bootstrap
We now should be running red5. Enjoy.

Any errors? I can try and help, let me know what errors you are getting.

 
Top