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

07-27 14:00