[RED5]red5流媒体服务器(开源免费)的安装方法
前言: 这次是在 centos 6.2 上安装的
第一步 安装jdk
[root@localhost ~]# mkdir -p /usr/java && cd /usr/java
[root@localhost java]# wget http://download.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-i586.rpm?AuthParam=1338380823_32740b93dd6532f01b895b7877de8092
[root@localhost java]# rpm -ivh jdk-7u4-linux-i586.rpm
第二步 安装ant
[root@localhost java]# wget http://labs.renren.com/apache-mirror//ant/binaries/apache-ant-1.8.4-bin.tar.gz
[root@localhost java]# tar xvf apache-ant-1.8.4-bin.tar.gz
[root@localhost java]# mv apache-ant-1.8.4 /usr/local/ant
[root@localhost java]# vi /etc/profile
export ANT_HOME=/usr/local/ant
export PATH=$PATH:$ANT_HOME/bin
[root@localhost java]# source /etc/profile
[root@localhost java]# ant -version
Apache Ant(TM) version 1.8.4 compiled on May 22 2012
第三步 安装red5
[root@localhost java]# cd
[root@localhost ~]# wget http://trac.red5.org/downloads/1_0/red5-1.0.0-RC1.tar.gz
[root@localhost ~]# tar xvf red5-1.0.0-RC1.tar.gz
[root@localhost ~]# mv red5-1.0.0 /usr/local/red5
[root@localhost ~]# cd /usr/local/red5/
测试能否打开
[root@localhost red5]# ./red5.sh
如果最后一行为 Installer service created 就说明成功了,再打开这个页面看看
http://www.e2fsck.org:5080/demos/BallControl.swf
创建服务
[root@localhost red5]# 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 (sohaileo@gmail.com)
- PROG=red5
- RED5_HOME=/usr/local/red5
- DAEMON=$RED5_HOME/$PROG.sh
- PIDFILE=/var/run/$PROG.pid
- # Source function library
- . /etc/rc.d/init.d/functions
- [ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5
- RETVAL=0
- case "$1" in
- start)
- echo -n $"Starting $PROG: "
- cd $RED5_HOME
- $DAEMON >/dev/null 2>/dev/null &
- RETVAL=$?
- if [ $RETVAL -eq 0 ]; then
- echo $! > $PIDFILE
- touch /var/lock/subsys/$PROG
- fi
- [ $RETVAL -eq 0 ] && success $"$PROG startup" || failure $"$PROG startup"
- echo
- ;;
- stop)
- echo -n $"Shutting down $PROG: "
- killproc -p $PIDFILE
- RETVAL=$?
- echo
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- status)
- status $PROG -p $PIDFILE
- RETVAL=$?
- ;;
- *)
- echo $"Usage: $0 {start|stop|restart|status}"
- RETVAL=1
- esac
- exit $RETVAL
[root@localhost red5]# chmod 755 /etc/init.d/red5
[root@localhost red5]# chkconfig –add red5
[root@localhost red5]# chkconfig red5 on
配置文件是 conf/red5.properties
默认demo位置 /usr/local/red5/webapps/root/demos
使用与应用方法,你可以到酷播官方网站 http://www.cuplayer.com/cusunplayer/download.html 下载一个rtmp播放器进行测试:
极酷阳光播放器CuSunPlayerV2.0:[ 演示1 ] 更多演示请点击进入[ 极酷阳光播放器V2专栏 ]
热门文章推荐
- [Red5]Red5之Flash流媒体服务器的安装与使用教程完整版(组图)
- [RED5]搭建RED5直播用流媒体服务(搭直播环境)
- [RED5]Red5的直播与点播的压力测试(并发数的测试)
- [RED5]red5流媒体服务器(开源免费)的安装方法
- [RED5]用red5做视频直播(red5流媒体直播)
- [RED5]Red5在线录制音视频源代码示例
- [RED5]Red5 Client 连接 Red5Server java代码
- [RED5]red5流媒体播放平台搭建环境方法