kurento 6.0安装测试

本文介绍如何在Ubuntu环境下安装Kurento 6.0并进行相关软件配置,包括Java环境变量设置及使用Maven编译Kurento官方示例程序的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

//安装kurento 6.0
echo "deb http://ubuntu.kurento.org trusty kms6" | sudo tee /etc/apt/sources.list.d/kurento.list
wget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install kurento-media-server-6.0
sudo service kurento-media-server-6.0 start|stop
//安装相关软件
sudo apt-get install git maven nodejs npm
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://edelivery.oracle.com/otn-pub/java/jdk/8u66-b17/jdk-8u66-linux-x64.tar.gz
sudo tar zxvf jdk-8u66-linux-x64.tar.gz -C /usr/lib/jvm
//设置环境变量:
sudo vim /etc/profile
#JAVA
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_66
export CLASSPATH=.:$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
:wq
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_66/bin/java 300  
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_66/bin/javac 300  
sudo update-alternatives --config java
sudo reboot
//安装测试demo
git clone https://github.com/Kurento/kurento-tutorial-java.git
sudo chmod -R 777 kurento-tutorial-java 
cd kurento-tutorial-java/kurento-hello-world
sudo mvn clean compile exec:java
log:
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Kurento Java Tutorial - Hello World 6.6.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ kurento-hello-world ---
[INFO] Deleting /home/chenqy/kurento-tutorial-java/kurento-hello-world/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ kurento-hello-world ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ kurento-hello-world ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-bytecode-version) @ kurento-hello-world ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (get-build-timestamp) @ kurento-hello-world ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ kurento-hello-world ---
[INFO] Executing: /bin/sh -c cd '/home/chenqy/kurento-tutorial-java/kurento-hello-world' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/chenqy/kurento-tutorial-java/kurento-hello-world
[INFO] Storing buildNumber: 46b428871d0f26378f3b2592fab70a6723dfaac4 at timestamp: 1482062377784
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref


[INFO] Executing: /bin/sh -c cd '/home/chenqy/kurento-tutorial-java/kurento-hello-world' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/chenqy/kurento-tutorial-java/kurento-hello-world
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ kurento-hello-world ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 13 resources
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ kurento-hello-world ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /home/chenqy/kurento-tutorial-java/kurento-hello-world/target/classes
[WARNING] bootstrap class path not set in conjunction with -source 1.7
[INFO] 
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ kurento-hello-world ---


   .------------------------------------.
   |                                    |
   |   | |/ /  _ _ _ ___ _ _| |_ ___    |
   |   | ' < || | '_/ -_) ' \  _/ _ \   |
   |   |_|\_\_,_|_| \___|_||_\__\___/   |
   |                                    |
   '------------------------------------'
       Kurento Java Tutorial - Hello World
       Version 6.6.0


2016-12-18 19:59:44.167  INFO 1690 --- [WorldApp.main()] o.k.tutorial.helloworld.HelloWorldApp    : Starting HelloWorldApp on localhost.localdomain with PID 1690 (/home/chenqy/kurento-tutorial-java/kurento-hello-world/target/classes started by root in /home/chenqy/kurento-tutorial-java/kurento-hello-world)
2016-12-18 19:59:44.189  INFO 1690 --- [WorldApp.main()] o.k.tutorial.helloworld.HelloWorldApp    : No active profile set, falling back to default profiles: default
2016-12-18 19:59:44.433  INFO 1690 --- [WorldApp.main()] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5bce21ca: startup date [Sun Dec 18 19:59:44 CST 2016]; root of context hierarchy
2016-12-18 19:59:47.936  INFO 1690 --- [WorldApp.main()] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2016-12-18 19:59:49.639  INFO 1690 --- [WorldApp.main()] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8443 (https)
2016-12-18 19:59:49.692  INFO 1690 --- [WorldApp.main()] o.apache.catalina.core.StandardService   : Starting service Tomcat
2016-12-18 19:59:49.698  INFO 1690 --- [WorldApp.main()] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.0.28
2016-12-18 19:59:50.010  INFO 1690 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2016-12-18 19:59:50.010  INFO 1690 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 5589 ms
2016-12-18 19:59:50.965  INFO 1690 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean        : Mapping servlet: 'dispatcherServlet' to [/]
2016-12-18 19:59:50.983  INFO 1690 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'characterEncodingFilter' to: [/*]
2016-12-18 19:59:50.984  INFO 1690 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2016-12-18 19:59:50.984  INFO 1690 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2016-12-18 19:59:50.985  INFO 1690 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'requestContextFilter' to: [/*]
2016-12-18 19:59:51.152  INFO 1690 --- [WorldApp.main()] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService  'defaultSockJsTaskScheduler'
2016-12-18 19:59:51.356  INFO 1690 --- [WorldApp.main()] org.eclipse.jetty.util.log               : Logging initialized @27252ms
2016-12-18 19:59:51.771  INFO 1690 --- [ntLoopGroup-2-1] o.k.j.c.JsonRpcClientNettyWebSocket      : [KurentoClient]  Inititating new Netty channel. Will create new handler too!
2016-12-18 19:59:52.163  INFO 1690 --- [WorldApp.main()] o.s.w.s.s.s.WebSocketHandlerMapping      : Mapped URL path [/helloworld] onto handler of type [class org.springframework.web.socket.server.support.WebSocketHttpRequestHandler]
2016-12-18 19:59:52.684  INFO 1690 --- [WorldApp.main()] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5bce21ca: startup date [Sun Dec 18 19:59:44 CST 2016]; root of context hierarchy
2016-12-18 19:59:52.885  INFO 1690 --- [WorldApp.main()] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2016-12-18 19:59:52.890  INFO 1690 --- [WorldApp.main()] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2016-12-18 19:59:52.907  INFO 1690 --- [WorldApp.main()] o.s.w.s.c.a.WebMvcConfigurerAdapter      : Adding welcome page: class path resource [static/index.html]
2016-12-18 19:59:52.951  INFO 1690 --- [WorldApp.main()] o.s.w.s.handler.SimpleUrlHandlerMapping  : Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-18 19:59:53.202  INFO 1690 --- [WorldApp.main()] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-18 19:59:53.203  INFO 1690 --- [WorldApp.main()] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-18 19:59:53.340  INFO 1690 --- [WorldApp.main()] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-18 19:59:53.657  INFO 1690 --- [WorldApp.main()] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2016-12-18 19:59:53.684  INFO 1690 --- [WorldApp.main()] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 2147483647
2016-12-18 19:59:54.700  INFO 1690 --- [WorldApp.main()] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8443 (https)
2016-12-18 19:59:54.713  INFO 1690 --- [WorldApp.main()] o.k.tutorial.helloworld.HelloWorldApp    : Started HelloWorldApp in 11.598 seconds (JVM running for 30.612)

//测试
https://xx.xx.xx.xx:8443


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值