Install Red5 1.0.1 on CentOS release 6.5 (Final) 64-Bit


Hits: 10202  

Contact us for Red5 HLS Plugin

Red5 MySQL Authentication Plugin

Wowza MySQL Authentication Plugin

1. Install Java

# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel

2. Install Ant

# cd /usr/local/src
# 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

3. Export path for Ant and Java

# export ANT_HOME=/usr/local/ant
# export JAVA_HOME=/usr/lib/jvm/java
# export PATH=$PATH:/usr/local/ant/bin
# export CLASSPATH=.:$JAVA_HOME/lib/classes.zip

Also add these lines in /etc/bashrc at last to available every-time logged in to SSH

# echo ‘export ANT_HOME=/usr/local/ant’ >> /etc/bashrc
# echo ‘export JAVA_HOME=/usr/lib/jvm/java’ >> /etc/bashrc
# echo ‘export PATH=$PATH:/usr/local/ant/bin’ >> /etc/bashrc
# echo ‘export CLASSPATH=.:$JAVA_HOME/lib/classes.zip’ >> /etc/bashrc

4. Install RED5 Server

# cd /usr/local/src
# wget http://fossies.org/linux/privat/red5-1.0.1.tar.gz
# tar zxvf red5-1.0.1.tar.gz
# mv /usr/local/src/red5-server-1.0 /usr/local/red5

5. Create a service for Red5 to start and stop

# wget -O /etc/init.d/red5 http://www.sohailriaz.com/downloads/red5.txt
# chmod +x /etc/init.d/red5

6. Allow port 5080 and 1935 to your server firewall

# iptables -A INPUT -p tcp -m tcp –dport 5080 -j ACCEPT
# iptables -A INPUT -p tcp -m tcp –dport 1935 -j ACCEPT

make sure you have double hyphen no space (- -) in dport option

OR allow from WHM

port-firewall-whm

7. Red5 Server Command

# /etc/init.d/red5 start
# /etc/init.d/red5 stop
# /etc/init.d/red5 status

# netstat -anp | grep 5080
# ps aux | grep red5

http://yourserver.com:5080/

Go to http://yourserver.com:5080/demos/ofla_demo.html to test Red5 Server Videos over RTMP

Red5-oflaDemo-VOD

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch

11 thoughts on “Install Red5 1.0.1 on CentOS release 6.5 (Final) 64-Bit”

  1. thankyou for this tutorial, however red5 has a gaping security hole in that once it is running anyone that knows the rtmp url can upstream their own video.and broadcast it using your server. This is a nightmare. Do you know of any way to restrict the red5 input source so only the server admin can upstream but still anyone can view?

  2. hello
    already successful thanks v.much .. but have a Question ..
    when i try to connect server .. connected without any login info .. so how to secure that and create a publishing login data to access LIVE

  3. Dear sir, Can u guide me how to Update red5 release to latest release…In Cent OS 6.7. Do i have to initiate from beginning or start red5 installation directly. I tried to reinstall red5 from red5 install steps, but I get errors.

  4. Try:

    # vim /etc/sysconfig/iptables

    Add:

    -A RH-Firewall-1-INPUT -p tcp –dport 5080 -j ACCEPT

    -A RH-Firewall-1-INPUT -p tcp –dport 1935 -j ACCEPT

    -A RH-Firewall-1-INPUT -p tcp –dport 8080 -j ACCEPT

    Save and restart iptables:

    # service iptables restart

    This method works for me

  5. Pingback: cpns 2017

Leave a Reply

Your email address will not be published.

*