apache / servicecomb-samples

Apache servicecomb
https://servicecomb.apache.org/
Apache License 2.0
499 stars 144 forks source link

can not create a new instance with new port #54

Closed huaian closed 3 years ago

huaian commented 4 years ago

steps:

cd /opt/develop/servicecomb-samples/java-chassis-samples/bmi/calculator

mvn spring-boot:run -Drun.jvmArguments="-Dcse.rest.address=0.0.0.0:7778"

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.2.RELEASE:run (default-cli) on project bmi-calculator: An exception occurred while running. null: InvocationTargetException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat: java.net.BindException: Address already in use (Bind failed) -> [Help 1]

refer to link: https://servicecomb.apache.org/cn/docs/products/java-chassis/load-balance/

huaian commented 4 years ago

server.port 也要修改成7778才行

liubao68 commented 4 years ago

https://docs.servicecomb.io/java-chassis/zh_CN/featured-topics/application-bmi/load-balance/

This is the latest document. The official site using a different demo repository and there are some bit different. I am going to create an issue to remove the docs.

huaian commented 4 years ago

thanks, guide is important. please make this update asap!