1 software and hardware environment 1.1 hardware environment CPUIntel (R) Core (TM) 2QuadCPUQ9300@2.50GHz memory 8 GB hard drive 80 GB Nic AtherosCommunitionsPCI-EGigabitEtherentController (NDI 1 software and hardware environment 1.1 hardware environment
CPU |
Intel (R) Core (TM) 2 Quad CPU Q9300 @ 2.50 GHz |
Memory |
8 GB |
Hard Disk |
80 GB |
Nic |
Atheros Communitions PCI-E Gigabit Etherent Controller (NDIS 6.20) |
1.2 software environment
Operating System |
RHEL6.4 _ x86_64 |
Media Server |
Red5-1.0.1 |
Media Client |
Firefox; Ffplay; VLC Player |
2 installation configuration 2.1 prepare 2.1.1 select deployment mode before installation
Setting up RHEL5 Streaming Media Server -- Red5 http://www.linuxidc.com//Linux/2010-03/25162.htm
The Red5 Server can be deployed on one Server or multiple servers as a cluster environment. This time, it is deployed on only one machine.
2.1.2 download the Red5 Server package
: Http://www.red5.org/downloads/red5/4240_1 /.
The downloaded file is: red5-1.0.1.tar.gz.
2.1.3 install Java
Red5 is an application based on Java 6 (1.6) and Java 7 (1.7). You must first install Java Runtime Environment (JRE) 6 or later. To develop a server-side application, install Java Development Kit (JDK) 6 or later.
We recommend that you install the latest Java JDK or JRE version for your platform. If you are using a 64-bit operating system, check that the 64-bit Java installation package is also selected.
You can download Java from the official Oracle website ?.
If you need to verify that Java 6 (1.6) or Java 7 (1.7) has been correctly installed and run, you can open the command line Prompt window, run the following command:
Java-version
If Java has been correctly installed and configured, a version number equal to or greater than 1.6 is returned.
2.2 Installation Steps
The steps for installing Red5 are simple. You can simply decompress it. Run the following command:
Cp red5-1.0.1.tar.gz/opt Cd/opt Tar-xvf red5-1.0.1.tar.gz |
This will install Red5 to the/opt directory, the installation directory is/opt/red5-server-1.0.
2.3 check installation result 2.3.1 check port number
Log on to Linux as a root user and run the following command: netstat-anp | grep "LISTEN" to check the port number.
[Root @ yuanhuan ~] # Netstat-anp | grep "LISTEN" Tcp 0 0 0.0.0.0: 111 0.0.0.0: * LISTEN 1676/rpcbind Tcp 0 0 0.0.0.0: 36277 0.0.0.0: * LISTEN 1724/rpc. statd Tcp 0 0 0.0.0.0: 22 0.0.0.0: * LISTEN 1940/sshd Tcp 0 0 127.0.0.1: 631 0.0.0.0: * LISTEN 1792/cupsd Tcp 0 0 127.0.0.1: 25 0.0.0.0: * LISTEN 2021/master Tcp 0 0: 1935: * LISTEN 3344/java Tcp 0 0: 9999: * LISTEN 3344/java Tcp 0 0: 111: * LISTEN 1676/rpcbind Tcp 0 0: 22: * LISTEN 1940/sshd Tcp 0 0: 1: 631: * LISTEN 1792/cupsd Tcp 0 0: 5080: * LISTEN 3344/java Tcp 0 0: 1: 25: * LISTEN 2021/master Tcp 0 0: 52124: * LISTEN 1724/rpc. statd Tcp 0 0: 32807: * LISTEN 3344/java |
The red part indicates that all the port numbers listened to by Red5 are enabled.
2.3.2 check the process
Run the following command to check the process started by Red5: ps-ef | grep java.
[Root @ yuanhuan ~] # Ps-ef | grep java Root 3344 3057 20 00:00:10 pts/0/usr/bin/java-Dpython. home = lib-Dred5.root =/opt/red5-server-1.0-Dlogback. contextSelector = org. red5.logging. loggingContextSelector-Dcatalina. useNaming = true-Djava. security. debug = failure-cp/opt/red5-server-1.0/red5-server-1.0-bootstrap.jar:/opt/red5-server-1.0/conf: org. red5.server. bootstrap |
2.3.3 check whether Red5 is automatically started
Red5 is not run as a Linux system service, but is started by executing its startup command, you can write its startup command:/opt/red5-server-1.0/red5.sh to/etc/rc. local.
2.3.4 play the video that comes with Red5 to check whether it is running normally
The Red5 Server comes with a test page with some examples for testing. Access http: // 10.120.112.35: 5080/in the browser to go to its test page:
On the test page, you must install some applications before testing. Click the Install link below to go to the App installation page:
Select an app for installation. After the installation is complete, return to the main test page again. Click the "Launch a demo" Link under the Install link to go to some demo pages that come with Red5:
Click the just-installed OFLA Demo to test its RTMP and RTMPT protocols:
3. 3.1 Start and Stop services 3.1.1 Linux/Unix platforms:
Open the Shell command and enter the following command:/opt/red5-server-1.0/red5.sh.
3.1.2 stop on Linux/Unix:
Open the command Shell and enter the following command:/opt/red5-server-1.0/red5-shutdown.sh.
Related reading:
Installing Red5 0.7 Streaming Media Server http://www.linuxidc.com//Linux/2008-04/12293.htm in Linux
Solution http://www.linuxidc.com//Linux/2008-05/13083.htm with http error: 404 ERROR in Red5 under Ubuntu
On a Linux server, how does one install Red5? Http://www.linuxidc.com//Linux/2012-06/63015.htm
Example of creating the first Red5 app with Eclipse-recording video http://www.linuxidc.com//Linux/2012-06/63023.htm online with Red5
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10