Friday, August 15, 2014

How to install RMS (Ray Media Server) on centos redhat fedora

To install Ray Media server follow the seps below.

Step 1) Install java if you don't have.
  • yum install java-1.7.0-openjdk

Step 2) Install RMS
  • cd /opt
  • mkdir ray_server
  • cd ray_server/
  • wget http://get.boonex.com/RMS-LINUX-v.7.1.0
  •  tar xzvf RMS-LINUX-v.7.1.0

Step 3) Configure RMS

1).  access.dat – mention all domain names which will be allowed to access RMS. Every domain name should be written on a separate line and should not contain "http://" and "www", just yourdomain.com;
  • cd /opt/ray_server/RMS_7.1.0
  • vi access.dat

2).    open file red5.sh – set the value for JAVA_HOME variable, It should be the path to the folder where JRE is installed, In my case it was below.
  • vi red5.sh
  • JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65/

3). Goto file run_daemon.sh set the value for RAY_SERVER_PATH variable, It should be the path to the RMS folder on your server. 
  • vi run_daemon.sh
  • RAY_SERVER_PATH=/opt/ray_server/RMS_7.1.0/

4). We need to make entries of webapp.virtualHosts for chat, board, global, im, We need to mention the server IP there.

***For board

  • cd /opt/ray_server/RMS_7.1.0/webapps/board/WEB-INF
  • vi red5-web.properties
  • Make the entry of server IP like below.
  • webapp.virtualHosts=0.0.0.0  webapp.virtualHosts=122.122.122.122
  • Note 122.122.122.122 is the server IP.
***For chat
  • cd /opt/ray_server/RMS_7.1.0/webapps/chat/WEB-INF
  • vi red5-web.properties
  • Make the entry of server IP like below as we did for board.
  • webapp.virtualHosts=0.0.0.0  webapp.virtualHosts=122.122.122.122
***For global
  • cd /opt/ray_server/RMS_7.1.0/webapps/global/WEB-INF
  • vi red5-web.properties
  • Make the entry of server IP like below as we did for board.
  • webapp.virtualHosts=0.0.0.0  webapp.virtualHosts=122.122.122.122
***For im
  • cd /opt/ray_server/RMS_7.1.0/webapps/im/WEB-INF
  • vi red5-web.properties
  • Make the entry of server IP like below as we did for board.
  • webapp.virtualHosts=0.0.0.0  webapp.virtualHosts=122.122.122.122

Step 4) Add the below following lines in /etc/rc.local file, So when server reboots RMS is started automatically.
  • vi /etc/rc.local
========
cd /opt/ray_server/RMS_7.1.0
./run_daemon.sh &
========

Step 5) Now we can rum the RMS.
  • cd /opt/ray_server/RMS_7.1.0
  • chmod 755 run_daemon.sh
  • ./run_daemon.sh &


  • Installing RMS also installs the Red5 server, which can be tested at http://server_ip:5080
  • RMS Address: server_main_IP
  • RMS Port: 1935
  • RMS HTTP Port: 5080

4 comments:

sourabh gupta said...

Wow really good one with exact steps totally error free thums up.... :-)

Unknown said...

Thanx sourabh :)

Anonymous said...

Thank you so much!

Unknown said...

Your welcome Lou Stillitano... :-)

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)