Setting up RHEL5 Streaming Media Server-Red5

Source: Internet
Author: User
Red5 is an open-source Flash streaming media server developed using Java. It supports: Converting audio (MP3) and video (FLV) into playing streams; recording client playback streams (only FLV); Sharing objects; releasing live streams; remote calls. Red5 uses RSTP as the streaming media transmission protocol. In some of its examples, it demonstrates some basic functions such as online recording, flash streaming media playback, online chat, and video conferencing. 1: download and install java Development Environment http://java.sun.com/jav

Red5 is an open-source Flash streaming media server developed using Java. It supports: Converting audio (MP3) and video (FLV) into playing streams; recording client playback streams (only FLV); Sharing objects; releasing live streams; remote calls. Red5 uses RSTP as the streaming media transmission protocol. In some of its examples, it demonstrates some basic functions such as online recording, flash streaming media playback, online chat, and video conferencing.

1: download and install the java Development Environment
Http://java.sun.com/javase/downloads/index.jsp
[Root @ server2 ~] # Cd/usr/local/src/tarbag/
[Root @ server2 tarbag] # chmod + x jdk-6u17-linux-i586.bin
[Root @ server2 tarbag] #./jdk-6u17-linux-i586.bin
[Root @ server2 tarbag] # mv jdk1.6.0 _ 17 // usr/local/java
[Root @ server2 ~] # Java-version
Java version "1.4.2"
Gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-52)
[Root @ server2 ~] # Rm-rf/usr/bin/java
[Root @ server2 ~] # Ln-s/usr/local/java/bin/java/usr/bin/
[Root @ server2 ~] # Vi/etc/profile
JAVA_HOME =/usr/local/java
CLASSPATH =.: $ JAVA_HOME/jre/lib/rt. jar: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
PATH = $ PATH: $ JAVA_HOME/bin
ANT_HOME =/usr/local/ant
Export PATH JAVA_HOME CLASSPATH ANT_HOME
[Root @ server2 ~] # Source/etc/profile
[Root @ server2 ~] # Java-version
Java version "1.6.0 _ 17"
Java (TM) SE Runtime Environment (build 1.6.0 _ 17-b04)
Java HotSpot (TM) Client VM (build 14.3-b01, mixed mode, sharing)

2: install Apache-ant
[Root @ server2 ~] # Cd/usr/local/src/tarbag/
[Root @ server2 tarbag] # wget http://mirror.cc.columbia.edu/pub/software/apache/ant/binaries/apache-ant-1.8.0-bin.tar.gz
[Root @ server2 tarbag] # tar-zxvf apache-ant-1.8.0-bin.tar.gz-C/usr/local/
[Root @ server2 tarbag] # mv/usr/local/apache-ant-1.8.0 // usr/local/ant
[Root @ server2 tarbag] # ln-s/usr/local/ant/bin/ant/usr/bin/ant

3: download the latest version of red5 and use ant to compile www.6688.cc.
[Root @ server2 tarbag] # cd ../software/
[Root @ server2 software] # svn co http://red5.googlecode.com/svn/java/server/trunk
Checked out revision 4067.
[Root @ server2 software] # cd trunk/
[Root @ server2 trunk] # ant server
[Root @ server2 trunk] # cp-r dist // usr/local/red5

4. Start the service.
[Root @ server2 ~] # Cd/usr/local/red5/
[Root @ server2 ~] #./Red5.sh &
[Root @ server2 ~] # Netstat-ntpl | grep java
Tcp 0 0: 1935: * LISTEN 6929/java
Tcp 0 0: 9999: * LISTEN 6929/java
Tcp 0 0: 34071: * LISTEN 6929/java
Tcp 0 0: 5080: * LISTEN 6929/java
Enter http: // ip: 5080. After the instance is installed online, you can view the movies in the instance. If the instance cannot be connected to port 5080, restart the service, kill-9 'pidof Java' first, and then run the preceding STARTUP script. This problem occurs on both servers I installed. If you don't know why, restart the server.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.