繁体   English   中英

Lagom -LagomServiceLocatorStart:无法启动嵌入式服务定位器或服务网关?

[英]Lagom -LagomServiceLocatorStart :Failed to start embedded Service Locator or Service Gateway?

我刚刚开始使用lagom,试图运行lagom示例,但我在启动服务器时遇到错误。 我有以下错误

     > runAll
     [info] Starting Kafka
     [info] Starting Cassandra
     ....Kafka Server closed unexpectedly.
     ......
     [info] Cassandra server running at 127.0.0.1:4000
    [error] p.c.s.NettyServer - Failed to listen for HTTP on /0.0.0.0:8000!
    [error] ({.}/*:lagomServiceLocatorStart) Failed to start embedded               

    Service Locator or Service Gateway. Hint: Are ports 8000 and 9010     
    already in use?
    [error] Total time: 32 s, completed Jan 28, 2017 1:19:03 AM

我在build.sbt中更改了三个参数仍然没有变化

     lagomServiceGatewayPort in ThisBuild := 9010
     lagomServiceLocatorStart in ThisBuild := 9005
     lagomServicesPortRange in ThisBuild := PortRange(40000, 45000)

任何想法,我做错了什么?

谢谢

您应该使用lagomServiceLocatorPort设置而不是lagomServiceLocatorStart更改端口

lagomServiceLocatorPort in ThisBuild := 9005

请参阅http://www.lagomframework.com/documentation/1.2.x/java/ServiceLocator.html#default-port

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM