编译环境:Ubuntu14.04/JDK7
Linux环境下安装Red5 0.7 流媒体服务器
Ubuntu下Red5出现HTTP ERROR:404错误的解决方案
如何在 Linux 服务器上安装 Red5?
使用 Eclipse 创建第一个 Red5 应用程序示例 - 使用 Red5 在线录制视频
步骤:
1、svn检出源码(两种方式)
svn co --depth empty https://github.com/Red5/red5-server (最新版)
svn checkout red5-read-only(我使用的是这个1.0.2-RC4版)
2、编译,跳过test
mvn -Dmaven.test.skip=true install
编译结果如下:
[INFO] Installing /home/linuxidc/wmw/red5-google/red5-read-only/target/red5-server-1.0.2-RC4-sources.jar to /home/linuxidc/.m2/repository/org/red5/red5-server/1.0.2-RC4/red5-server-1.0.2-RC4-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:21.353s
[INFO] Finished at: Wed Oct 15 09:34:22 CST 2014
[INFO] Final Memory: 16M/40M
[INFO] ------------------------------------------------------------------------
进去看看都有什么:
linuxidc@:~/wmw/red5-google/red5-read-only$ ls
build.properties license.txt pom.xml src target
linuxidc@:~/wmw/red5-google/red5-read-only$ cd target/
linuxidc@:~/wmw/red5-google/red5-read-only/target$ ls
apidocs <span>red5-server-1.0.2-RC4-bootstrap.jar</span>
archive-tmp <span>red5-server-1.0.2-RC4.jar</span>
classes red5-server-1.0.2-RC4-javadoc.jar
generated-sources <span> red5-server-1.0.2-RC4-server.tar.gz</span>
javadoc-bundle-options red5-server-1.0.2-RC4-server.zip
lib red5-server-1.0.2-RC4-sources.jar
maven-archiver test-classes
red5-server-1.0.2-RC4-server.tar.gz 这个就是我们编译后的red5-server了,先解压看一下:
linuxidc@:~/wmw/red5-google/red5-read-only/target/red5-server-1.0.2-RC4$ ls -l
总用量 852
drwxrwxr-x 2 linuxidc walfred 4096 10月 15 09:35 conf
drwxrwxr-x 2 linuxidc walfred 4096 10月 15 09:35 lib
-rw-rw-r-- 1 linuxidc walfred 1324 10月 15 09:15 license.txt
drwxrwxr-x 2 linuxidc walfred 4096 10月 15 09:35 plugins
-rw-rw-r-- 1 linuxidc walfred 1421 10月 15 09:21 red5.bat
-rw-rw-r-- 1 linuxidc walfred 168 10月 15 09:21 red5-debug.bat
-rwxr-xr-x 1 linuxidc walfred 220 10月 15 09:33 red5-debug.sh
-rw-rw-r-- 1 linuxidc walfred 1383 10月 15 09:21 red5-highperf.bat
-rwxr-xr-x 1 linuxidc walfred 622 10月 15 09:33 red5-highperf.sh
-rw-rw-r-- 1 linuxidc walfred 21745 10月 15 09:33 red5-server-bootstrap.jar
-rw-rw-r-- 1 linuxidc walfred 793004 10月 15 09:33 red5-server.jar
-rwxr-xr-x 1 linuxidc walfred 1670 10月 15 09:33 red5.sh
-rw-rw-r-- 1 linuxidc walfred 308 10月 15 09:21 red5-shutdown.bat
-rwxr-xr-x 1 linuxidc walfred 344 10月 15 09:33 red5-shutdown.sh
drwxrwxr-x 6 linuxidc walfred 4096 10月 15 09:35 webapps
运行red5.sh
[INFO] [Launcher:/installer] org.red5.server.Context - Setting parent bean factory as core
[INFO] [Launcher:/installer] org.red5.server.scope.WebScope - Set server [Server@1e3695map[[empty]]]
[INFO] [Launcher:live] org.red5.server.scope.WebScope - Set server [Server@1e3695map[[empty]]]
[INFO] [Launcher:vod] org.red5.server.scope.WebScope - Set server [Server@1e3695map[[empty]]]
[INFO] [Launcher:/] org.red5.server.scope.WebScope - Set server [Server@1e3695map[[empty]]]
[INFO] [Launcher:/installer] org.red5.server.Server - Add mapping global: default host: localhost context: installer
[INFO] [Launcher:live] org.red5.server.Server - Add mapping global: default host: context: live
[INFO] [Launcher:vod] org.red5.server.Server - Add mapping global: default host: context: vod
[INFO] [Launcher:/] org.red5.server.Server - Add mapping global: default host: context:
[WARN] [Launcher:/] org.red5.server.scope.Scope - Invalid scope rejected: Scope [name=, path=/default, type=APPLICATION, autoStart=true, creationTime=1413342261664, depth=1, enabled=true, running=false]
[WARN] [Launcher:/] org.red5.server.scope.Scope - Scope not added to parent
[INFO] [Launcher:/installer] org.red5.server.Server - Add mapping global: default host: localhost:5080 context: installer
[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created
3、下载拷贝依赖关系
linuxidc@:~/wmw/red5-google/red5-read-only$ <span>mvn dependency:copy-dependencies</span>
这时候target下会多出一个文件夹 dependency