Red5 is an Open Source Flash Server written in Java that supports:
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
First, Java Install
This assumes your server is using 32 bit version
In SSH, move to your temp directory:
Now, we download JAVA
We now need to make that file executable and then of course we execute it
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:
Should return
If your version doesn't say 1.6.0_27 then we may need to update some shortcuts:
Moving on. ANT Installation
Point shortcuts and whatnot:
Now let's check to make sure we are good
Should spit out
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:
No errors? Good. Next please
Red5 Installation
Let's get the latest version
Now let's build it
Ok, let's move red5 from our temp directory to it's new home
Still with me? Good. Now let's see if she starts:
Is it running? Let's test:
Navigate to http://yourserverip:5080
You see the red5 movie?
Another way to test is to SSH
Should output something along the lines of
We now should be running red5. Enjoy.
Any errors? I can try and help, let me know what errors you are getting.
- 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
This assumes your server is using 32 bit version
In SSH, move to your temp directory:
Code:
cd /root/tmp
Code:
wget http://download.oracle.com/otn-pub/java/jdk/6u27-b07/jdk-6u27-linux-i586-rpm.bin
Code:
chmod a+x jdk-6u27-linux-i586-rpm.bin
./jdk-6u27-linux-i586-rpm.bin
Code:
java –version
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)
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/
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
Code:
export ANT_HOME=/usr/local/ant
ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
Code:
ant -version
Code:
Apache Ant(TM) version 1.8.2
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
Red5 Installation
Let's get the latest version
Code:
svn co http://red5.googlecode.com/svn/java/server/trunk red5
Code:
cd red5
ant prepare
ant dist
Code:
cd ..
mv red5 /opt/red5
Code:
cd /opt/red5/dist/
sh red5.sh > /dev/null 2>&1 &
Navigate to http://yourserverip:5080
You see the red5 movie?
Another way to test is to SSH
Code:
ps aux | grep red5
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
Any errors? I can try and help, let me know what errors you are getting.