3

我刚刚开始使用 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)

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

谢谢

4

1 回答 1

1

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

lagomServiceLocatorPort in ThisBuild := 9005

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

于 2017-01-28T01:50:50.507 回答