Tutorial: Install Red5 on Linux

Tutorial: Install Red5 on Linux

Note: that this installation has been applied in Fedora with "yum", but you can easily do in other Linux distributions with aptitude, apt-get (Ubuntu), ...

1) Install Java JRE: Download Java JRE here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
For me, I chose this version "jre-7u5-linux-i586.rpm"
After, your run this script:
sudo chmod +x jre-7u5-linux-i586.rpm
sudo sh jre-7u5-linux-i586.rpm
Make the same procedure for JDK.
Note: You can also install Java with the command:
sudo yum update
sudo yum install java-package sun-java6-jdk sun-java6-jre subversion ant
2) Download Red5
Get the latest version in SVN: svn co http://red5.googlecode.com/svn/java/server/tags/1_0rc2/
Rename the svn folder: mv 1_0rc2 red5
Move the folder to sharing folder: sudo mv red5 /usr/share/
Move to the directory of RED5: 
cd /usr/share/red5
Let's GO, run RED5: 
sudo ant prepare
ant dist
cp -r dist/conf .
sudo sh red5.sh
3) Set Rred5 in the init start program:
cd /etc/init.d/
sudo touch red5
chmod 755 red5
vi red5
Place this code in the file and modify it here necessary:
#! /bin/sh
# Author: Jake Hilton <red5@jakehilton.com>
# /etc/init.d/red5
# Check for missing file
test -x $RED5_DIR/red5.sh || exit 5
case "$1" in
        echo -n "Starting Red5 Service"
        echo -n " "
        cd $RED5_DIR
        su -s /bin/bash -c "$RED5_DIR/red5.sh &" red5
        sleep 2
        echo -n "Shutting down red5"
        echo -n " "
        cd $RED5_DIR
        su -s /bin/bash -c "$RED5_DIR/red5-shutdown.sh &" red5
        sleep 2
        ## Stop the service and regardless of whether it was
        ## running or not, start it again.
        $0 stop
        $0 start
then you maybe need
useradd red5
and use like
service red5 start
service red5 stop
service red5 restart
Then save this file: :wq
Now we make the script executable:
sudo chmod +x /etc/init.d/red5
Then we create a red5 user because the script above, the user works with red5:
sudo useradd red5
Now, we start red5:
sudo /etc/init.d/red5 start
4) Finish
Go on your URL:

Next entry

Previous entry

Similar entries

comments powered by Disqus