首页 > 系统 > Linux > 正文

Linux下安装ray media server注意事项

2024-08-28 00:11:21
字体:
来源:转载
供稿:网友

RMS Installation
Log into your shell account using your favorite SSH client.
Choosing a Folder to install RMS
Choose the folder where RMS will be installed in. You can create a separate folder for that. It doesn't matter where you create this folder but remember that if you want to prevent the folder of being accessed in a browser, you should create it in the root directory of your hosting account (/) or your home directory if root is not accessible or writable (/home/myaccount/).
Let's assume you have created "ray_server" folder inside "/opt" directory. Now the absolute path to your Ray Media Server folder is /opt/ray_server/.

Uploading Files
Download the Ray Media server archive applicable for your operating system (UNIX or Windows). Unzip the archive and upload the contents of the extracted folder in the folder you created on your server (for example /opt/ray_server).
Note: if you're installing the Windows version, you will have to run the extracted executable file on your Windows server. After you have followed the wizard instruction, RMS will be installed by default in C:/Program Files/RMS.

Uploading Suite/Widgets Contents to RMS
If you're installing the full Ray Widget Suite, unzip the archive and upload the contents of ray_rms (i.e. chat/, im/ and video/) folder in webapps folder inside the Ray Media Server folder on your server (for example /opt/ray_server/webapps/ or C:/Program Files/RMS/webapps/ (for Windows) ).
If you're installing "Chat", "Instant Messenger" or "Video Recoder" separately, you'll have to unzip the respective archive and upload the folders with _rms/ postfixes into "webapps" folder inside the Ray Media Server folder on your server. Remove the _rms/ postfixes from the folders' names.

Note: The widgets stated above use audio/video facilities of Ray Media Server. The other widgets don't use RMS and you can omit RMS installation for them.

Configuring RMS
Make the following changes to some files inside the Ray Media Server directory:
access.dat – input 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;
ray.sh (UNIX only) – set the value for JAVA_HOME variable. It should be the path to the folder where JRE is installed. For example: JAVA_HOME=/opt/ray_server/jre1.x;
run_daemon.sh (UNIX only) – set the value for RAY_SERVER_PATH variable. It should be the path to the RMS folder on your server. For example: RAY_SERVER_PATH=/opt/ray_server;
change the IP addresses in the files located in path_to_rms/webapps/widget_name/WEB-INF/red5-web.properties
where "path_to_rms" stands for path to your Ray Media Server folder, and "widget_name" stands for "chat", "im" and "video". For example: open

/opt/ray_server/webapps/chat/WEB-INF/red5.properties
for UNIX or

C:/Program Files/RMS/webapps/chat/WEB-INF/red5.properties
(for Windows) and replace the following line:

webapp.virtualHosts=0.0.0.0

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表