更改 kurento 测试端口
change kurento test port
我正在尝试将 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.So 我无法将此端口用于 kurento.Is 有什么方法可以从 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
错误
教程是 spring-引导应用程序。您可以从命令行更改为应用程序提供服务的端口。只需在调用 exec
maven 插件
时添加 server.port
标志
mvn compile exec:java -Dserver.port=<port>
这个也有答案here
应用程序必须在本地使用 KMS 运行 启动。否则,您将需要标志 -Dkms.url=ws://<ip>:8888/kurento
。启动后,您将能够在 https://localhost:<port>
中访问您的应用程序。请注意,该应用程序是通过安全连接提供的。
编辑 1
这行来自您的日志
Caused by: org.kurento.commons.exception.KurentoException:
[KurentoClient] Exception connecting to WebSocket server
ws://127.0.0.1:8888/kurento
表示 KMS 不在那台机器上 运行,或者它在不同的端口上 运行。当您启动应用程序时,请确保 KMS 进程确实 运行。
我正在尝试将 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.So 我无法将此端口用于 kurento.Is 有什么方法可以从 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
错误
教程是 spring-引导应用程序。您可以从命令行更改为应用程序提供服务的端口。只需在调用 exec
maven 插件
server.port
标志
mvn compile exec:java -Dserver.port=<port>
这个也有答案here
应用程序必须在本地使用 KMS 运行 启动。否则,您将需要标志 -Dkms.url=ws://<ip>:8888/kurento
。启动后,您将能够在 https://localhost:<port>
中访问您的应用程序。请注意,该应用程序是通过安全连接提供的。
编辑 1
这行来自您的日志
Caused by: org.kurento.commons.exception.KurentoException: [KurentoClient] Exception connecting to WebSocket server ws://127.0.0.1:8888/kurento
表示 KMS 不在那台机器上 运行,或者它在不同的端口上 运行。当您启动应用程序时,请确保 KMS 进程确实 运行。