1. After centos5.4 _ x64 is installed by default, jdk1.6 is integrated.
Java-version
If the current version number is 1.6, you do not need to install it again.
Ii. Install red5
1. Create a temporary directory:
CD/usr/local
Mkdir temp
2. Download The red5 package
Wget http://www.red5.org/downloads/red5/1_0/red5-1.0.0.tar.gz
3. decompress the package and copy it to the/usr/local/red5 directory.
Tar zxvf red5-1.0.0.tar.gz
MV red5-1.0.0-build-jenkins-red5-226/usr/local/red5
4. Set as executable
CD/usr/local/red5
Chmod + x *. Sh
5. Test red5
./Red5.sh
If the last line shows Installer Service created, the installation is successful.
6. Edit the configuration file
Find the/usr/local/red5/CONF/red5.properties file and change 0.0.0.0 to the server IP address.
3. Add a service startup Item
1. Edit the startup script?
VI/etc/init. d/red5
#!/bin/bash# For RedHat and cousins:# chkconfig: 2345 85 85# description: Red5 flash streaming server# processname: red5# Created By: Sohail Riaz ([email protected])PROG=red5RED5_HOME=/usr/local/red5DAEMON=$RED5_HOME/$PROG.shPIDFILE=/var/run/$PROG.pid# Source function library. /etc/rc.d/init.d/functions[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5RETVAL=0case "$1" instart)echo -n $"Starting $PROG: "cd $RED5_HOME$DAEMON >/dev/null 2>/dev/null &RETVAL=$?if [ $RETVAL -eq 0 ]; thenecho $! > $PIDFILEtouch /var/lock/subsys/$PROGfi[ $RETVAL -eq 0 ] && success $"$PROG startup" || failure $"$PROG startup"echo;;stop)echo -n $"Shutting down $PROG: "killproc -p $PIDFILERETVAL=$?echo[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG;;restart)$0 stop$0 start;;status)status $PROG -p $PIDFILERETVAL=$?;;*)echo $"Usage: $0 {start|stop|restart|status}"RETVAL=1esacexit $RETVAL
Download: http://files.cnblogs.com/liongis/red5.zip is the content above
2. Add the startup script to the service.
Chmod + x/etc/rc. d/init. d/red5
Chkconfig-add red5 (I did not perform this step)
Chkconfig red5 on (I did not perform this step)
3. Set centos firewall? (I did not perform this step and did not start the firewall during installation)
Add the following content to the/etc/sysconfig/iptables file:
-A input-M state -- state new-m tcp-p tcp -- dport 5080-J accept
-A input-M state -- state new-m tcp-p tcp -- dport 1935-J accept
Restart the firewall? /Sbin/service iptables restart
Check whether the port is open? /Sbin/iptables-l-N
4. Start red5
/Etc/init. d/red5 start
Access http: // yourip: 5080 in a browser
Next, click "install a ready-made application" on the homepage to install all the demos in the appname list.
Click "launch a demo" on the homepage to view the demo.
1. Shared ball Whiteboard
2. Simple Chat
3. Simple broadcaster live video
4. watch live video with simple subscriber
In the demo, replace localhost with your red5 server address.
The installation part of this article is "http://www.cnblogs.com/liongis/p/3505287.html"
Centos5.4 _ x64 red5 1.0 installation and deployment