我试图在
的帮助下将kurento集成到我的VPS服务器中http://doc-kurento.readthedocs.org/en/stable/tutorials/java/tutorial-helloworld.html
git clone https://github.com/Kurento/kurento-tutorial-java.git
cd kurento-tutorial-java/kurento-hello-world
git checkout 6.4.0
mvn compile exec:java
我的问题是,端口8443已经为并行plesk分配了。所以我无法将此端口用于kurento。有没有办法从8443更改测试端口?
我已更新src / main / resources / application.properties中的端口,并尝试使用mvn compile -e exec:java -Dserver.port=8089
,但仍然无法正常工作
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Kurento Java Tutorial - One2One Call Advanced 6.4.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ kurento-one2one-call-recording ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ kurento-one2one-call-recording ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (get-build-timestamp) @ kurento-one2one-call-recording ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ kurento-one2one-call-recording ---
[INFO] Executing: /bin/sh -c cd '/var/www/vhosts/vps72185.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /var/www/vhosts/vps72185.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording
[INFO] Storing buildNumber: 9fba36e32343bb490384a4e1869e2b40de78fa2e at timestamp: 1460955195622
[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 '/var/www/vhosts/vps123.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /var/www/vhosts/vps123.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:exec (default) @ kurento-one2one-call-recording ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ kurento-one2one-call-recording ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 325 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ kurento-one2one-call-recording ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ kurento-one2one-call-recording ---
.------------------------------------.
| |
| | |/ / _ _ _ ___ _ _| |_ ___ |
| | ' < || | '_/ -_) ' \ _/ _ \ |
| |_|\_\_,_|_| \___|_||_\__\___/ |
| |
'------------------------------------'
version 6.4.0
00:53:17.662 [OneCallRecApp.main()] INFO - o.k.t.one2onecallrec.One2OneCallRecApp -
Starting One2OneCallRecApp on vps123.vps.ovh.ca with PID 23974 (/var/www/vhosts/vps123.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording/target/classes started by root in /var/www/vhosts/vps123.vps.ovh.ca/mysite.co.uk/kurento-flabba/kurento-one2one-call-recording)
00:53:17.665 [OneCallRecApp.main()] DEBUG - o.k.t.one2onecallrec.One2OneCallRecApp -
Running with Spring Boot v1.3.0.RELEASE, Spring v4.2.3.RELEASE
00:53:17.665 [OneCallRecApp.main()] INFO - o.k.t.one2onecallrec.One2OneCallRecApp -
No profiles are active
00:53:17.975 [ pool-1-thread-1] INFO - o.h.validator.internal.util.Version -
HV000001: Hibernate Validator 5.2.2.Final
答案 0 :(得分:2)
教程是spring-boot应用程序。您可以从命令行更改提供应用程序的端口。只需在调用server.port
maven插件
exec
标志
mvn compile exec:java -Dserver.port=<port>
这也是here
的答案必须使用本地运行的KMS启动应用程序。否则,您需要标记-Dkms.url=ws://<ip>:8888/kurento
。一旦启动,您就可以在https://localhost:<port>
中访问您的应用程序。请注意,该应用程序通过安全连接提供。
编辑1
日志中的这一行
引起:org.kurento.commons.exception.KurentoException: [KurentoClient]连接到WebSocket服务器的异常 WS://127.0.0.1:8888 / kurento
表示KMS未在该计算机上运行,或者它在另一个端口中运行。启动应用程序时,请确保KMS进程确实在运行。