英文:
How to run conductor jar on different port, other then 8080?
问题
我正在使用以下命令运行 conductor jar 文件:java -jar conductor3.3.4.jar,因此 conductor 正在端口 8080 上运行。现在我想再次运行上述命令,但使用不同的端口 java -jar conductor3.3.4.jar,因此 conductor --server.port=8081。但它不起作用,我还尝试了传递一个 application.properties 文件。请帮助我解决这个问题。
我尝试了以下命令:java -jar conductor3.3.4.jar,以及 conductor --server.port=8081,并尝试通过传递 application.properties 文件。
英文:
I am running conductor jar using command, java -jar conductor3.3.4.jar so conductor is up and running on port 8080 now I want to run the above command again but with different port java -jar conductor3.3.4.jar so conductor --server.port=8081. But it is not working, I have also tried with passing a application.properties file. Please help me on this.
I tried with commands java -jar conductor3.3.4.jar so conductor --server.port=8081 also tried by passing application.properties.
答案1
得分: 1
以下是翻译好的内容:
这是我用于测试在自定义端口上运行 conductor 的脚本。
run.bat(Windows)
SET CONDUCTOR_VER=3.11.2
SET PORT=8888
curl https://repo1.maven.org/maven2/com/netflix/conductor/conductor-server/%CONDUCTOR_VER%/conductor-server-%CONDUCTOR_VER%-boot.jar --output conductor-server-%CONDUCTOR_VER%-boot.jar
java -jar conductor-server-%CONDUCTOR_VER%-boot.jar --server.port=%PORT%
如果这不起作用,那么可能端口没有打开,或者另一个应用程序正在使用它。您可以通过运行以下命令来检查:
netstat -aon
详细信息请参阅这里:
https://inevent.com/blog/tech-and-trends/how-to-check-open-ports-for-live-streaming.html
英文:
This is a script I used to test running conductor on a custom port
run.bat (windows)
SET CONDUCTOR_VER=3.11.2
SET PORT=8888
curl https://repo1.maven.org/maven2/com/netflix/conductor/conductor-server/%CONDUCTOR_VER%/conductor-server-%CONDUCTOR_VER%-boot.jar --output conductor-server-%CONDUCTOR_VER%-boot.jar
java -jar conductor-server-%CONDUCTOR_VER%-boot.jar --server.port=%PORT%
If this does not work then maybe the port is not open or another application is using it. You can check this by running
netstat -aon
Details here
https://inevent.com/blog/tech-and-trends/how-to-check-open-ports-for-live-streaming.html
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论