Results 1 to 2 of 2
  1. #1

    Post How to install RED5 on CentOs

    FatCow Web Hosting
    1. Install Java

    Code:
    # yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
    2. Install Ant

    Code:
    # cd /usr/local/src
    # wget http://red5.svnlabs.com/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

    Make sure you have right paths (java, ant etc.) on your server, I have used 32-bits CentOS server … home path might be different on 64-bits or other server

    Code:
    # 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

    4. Install SVN

    Code:
    # yum install subversion
    5. Install RED5 Server

    Code:
    # cd /usr/local/src
    # svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5
    # mv red5 /usr/local/
    # cd /usr/local/red5
    # ant prepare
    # ant dist
    6. Copy Red5 files

    Code:
    # cp -r dist/conf /usr/local/red5
    7. Test Run

    Code:
    # sh red5.sh
    ctrl + z

    You need to allow port 5080 and 1935 to your server firewall.

    Code:
    # iptables -A INPUT -p tcp -m tcp –dport 5080 -j ACCEPT
    # iptables -A INPUT -p tcp -m tcp –dport 1935 -j ACCEPT
    Red5 Server Status

    Code:
    # netstat -anp | grep 5080
    # ps aux | grep red5
    If you have CentOS 64-bits server and you are getting error like

    - Buildfile: build.xml does not exist!
    - BUILD FAILED
    - Cannot allocate memory

    You might need to checkout modified files
    Code:
    # cd /usr/local/src
    # svn co http://red5.googlecode.com/svn/java/server/tags/1_0/ red5
    Build Failed (Life saver)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Cannot run program “chmod”: java.io.IOException: error=12, Cannot allocate memory

    Code:
    # export _JAVA_OPTIONS=’-Xms32m -Xmx56m -Xss128k -XX:PermSize=32m -XX:MaxPermSize=64m’
    # export ANT_OPTS=’-Xms32m -Xmx56m -Xss128k -XX:PermSize=32m -XX:MaxPermSize=64m’
    Try solution here… How to install Red5 Demos?

    Code:
    # cd /usr/local/red5/webapps/root
    # svn checkout http://red5.googlecode.com/svn/java/server/tags/0_9_1/webapps/root/demos/
    Then go to
    yourserver.com:5080/demos/

  2. #2
    Join Date
    Mar 2013
    Posts
    128
    Thank you for this useful contribution. I sure found it helpful.

Similar Threads

  1. GET- Centos Openvpn Bash install script
    By mangobuddy in forum VPS, Dedicated & Colocation Hosting
    Replies: 2
    Last Post: 01-16-2014, 07:20 AM
  2. centos SSH -bash-4.1# error
    By Redoy in forum Hosting Security and Technology
    Replies: 0
    Last Post: 09-16-2013, 03:27 AM
  3. How to install cPanel on CentOS
    By ArLinD in forum Tutorials
    Replies: 2
    Last Post: 04-01-2013, 05:05 AM
  4. Centos LVM Partitions
    By jeffscott in forum VPS, Dedicated & Colocation Hosting
    Replies: 0
    Last Post: 09-08-2012, 08:45 AM
  5. How To Install Apache with MySQL and PHP on Linux CentOS
    By mangobuddy in forum Hosting Security and Technology
    Replies: 1
    Last Post: 09-07-2012, 03:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Footer

Powered by vBulletin® Version 4.2.2
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.
Webhosting Market 2012 - 2016