Groovy-grails:grails run-war工作,但是grails run-app抛出BindException:已经在使用的地址:JVM_Bind <null>:80n

当我运行grails -Dserver.port = 80运行应用程序,我得到

LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind<n ull>:80 at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212) at grails.web.container.EmbeddableServer$start.call(Unknown Source) 

当我运行grails -Dserver.port = 80 run-war时,web应用程序运行完美。

我正在使用Windows 7和Grails 1.3.7与内置的Tomcat服务器。 我是新来的,所以如果你需要更多的信息,请问。

我怎样才能让端口80上运行应用程序工作?

exception消息指出该Address already in use 。 即。 另一个应用程序已经被占用,正在侦听端口80.如果run-war命令成功run-war ,它将占用端口80.在运行run-app命令之前,你确定这个进程已经停止吗?

检查这个问题/答案 ,了解如何调查哪个进程正在某个端口上进行侦听。