Blog

How to install red5 server on vps server ?

December 16, 2016 Red5 server, Tutorial, Vps Server 0 Comments

In this blog you will find answer of your question How to install red5 server on vps server?How to install red5 server

Red5  Server is a powerful media streaming server or RTMP Server  worked on RTMP protocal. As Red5 is an open and extensible platform can be install on vps or dedicated server for free, which can be used in Video Conferencing or Network gaming.

But as initial many people don’t know How to install red5 server on vps server or dedicated server? at he end of this blog you will be easily install Red5 RMTP server on your VPS server or dedicated server. You can also to find answer of your question how to install red5 server on vps server with linux OS ?

First install putty software from http://www.putty.org/ to connect with server. Login with root as a user and root password.

As Red5 is based on java we will need to have java installed on server to check java installed or not you can use command java -version if you see message command not found mean java is not installed on you server else you will see line like this

# java -version java version “1.7.0_79″Java(TM) SE Runtime Environment (build 1.7.0_79-b15)Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Let get start finding you answer of your question How to install red5 server?

Use following step by step instructions to install or update Java.

Step 1: Installing  Java
Downloading Latest Java Archive

Java latest archive is available on its official site. We recommend to download latest version of Java from Oracle official website. After completing download also extract archive with given commands.

For 64 Bit:-

# cd /opt/# wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz” # tar xzf jdk-7u79-linux-x64.tar.gz

For 32 Bit:-

# cd /opt/# wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-i586.tar.gz” # tar xzf jdk-7u79-linux-i586.tar.gz

Note: Use archive file as per your system configuration. For this example we are using CentOS 7.0 (64 bit) system.

Install Java with Alternatives

After extracting Java archive file, we just need to set up to use newer version of Java using alternatives. Use the following commands to do it.

# cd /opt/jdk1.7.0_79/# alternatives –install /usr/bin/java java /opt/jdk1.7.0_79/bin/java 2# alternatives –config java

There are 3 programs which provide ‘java’.   Selection    Command———————————————–*  1           /opt/jdk1.7.0_60/bin/java + 2           /opt/jdk1.7.0_72/bin/java   3           /opt/jdk1.7.0_79/bin/java Enter to keep the current selection[+], or type selection number: 3 [Press Enter]

Now you may also required to set up javac and jar commands path using alternatives command.

# alternatives –install /usr/bin/jar jar /opt/jdk1.7.0_79/bin/jar 2# alternatives –install /usr/bin/javac javac /opt/jdk1.7.0_79/bin/javac 2# alternatives –set jar /opt/jdk1.7.0_79/bin/jar# alternatives –set javac /opt/jdk1.7.0_79/bin/javac

Check Installed Java Version

Use following command to check which version of Java is currently being used by system.

# java -version java version “1.7.0_79″Java(TM) SE Runtime Environment (build 1.7.0_79-b15)Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Configuring Environment Variables

Most of Java based application’s uses environment variables to work. Use following commands to set up these variable properly. It’s also good to add following commands to any start-up script like ~/.bashrc or ~/.bash_profile.

  • SetupJAVA_HOME Variable

# export JAVA_HOME=/opt/jdk1.7.0_79

  • SetupJRE_HOME Variable

# export JRE_HOME=/opt/jdk1.7.0_79/jre

  • SetupPATH Variable

# export PATH=$PATH:/opt/jdk1.7.0_79/bin:/opt/jdk1.7.0_79/jre/bin

I hope above steps will help you for installing Java on your Linux system. You can follow above steps to install multiple version of Java as same time but you can use only one version at a time.

Step 2: Setup Environment Variables

Its necessory to set environment variables to make it working.

# echo ‘export JAVA_HOME=/opt/jdk1.7.0_25’ >> /etc/bashrc# source /etc/bashrc

How to install red5 server ?  Red5 installation start here
Step 3: Download and Extract Red5

Use this link to find latest version of Red5 or use following commands to download red5 1.0.1. Also extract them.

# cd /opt/# wget https://github.com/Red5/red5-server/releases/download/v1.0.8-M13/red5-server-1.0.8-M13.tar.gz# tar xzf red5-server-1.0.8-M13.tar.gz# mv red5-server/ red5

Step 4: Start Red5

After extracting downloaded archive, lets start Red5 using shell script red5.sh available in directory.

# cd /opt/red5# ./red5.sh &

Step 5: Access Red5 Web Interface

First  goto

cd /opt/red5/webapps/installer/WEB-INF/

vi red5-web.properties  and edit this file and change localhost  to your ip address. Then press Esc button and run :wq command to save.

cd /opt/red5/conf/

vi red5-web.properties  and edit this file and change localhost to your ip address. Then press Esc button and run :wq command to save.

 

 

 

Red5 demo pages and application can be accessed on port 5080 like http://yourserverip:5080/

URL:   http://192.168.1.105:5080

 

You can follow this tutorial for your question like How to install red5 server on vps server? How to install red5 server on linux server? How to install red5 server on Centos ?  How to install red5 server on Ubuntu?



Back to blog list


About the Author


    Join Discussion

    Chat With Us
    Chat With Us×

    Are you sure you want to quit ?

    Yes No

    Please wait..
    Thank you for contacting us, We will be in touch shortly.
    Sorry no operator available to chat. You can write us.
    Field cannot be empty.
    Field cannot be empty.
    Field cannot be empty.
    Field cannot be empty.

    Thank you for chatting with us !

    Chat Again