&引用;grails-Dserver.port=9999运行应用程序;无效
我想使用port&引用;grails-Dserver.port=9999运行应用程序;无效,grails,Grails,我想使用port9999启动grails服务器: grails -Dserver.port=9999 run-app 但是,它不起作用。控制台显示一个错误: Failed to start end point associated with ProtocolHandler["http-nio-8080"] java.net.BindException:Address already in use:bind ... 在命令行上使用-Dgrails.server.port.http=999
9999
启动grails服务器:
grails -Dserver.port=9999 run-app
但是,它不起作用。控制台显示一个错误:
Failed to start end point associated with ProtocolHandler["http-nio-8080"]
java.net.BindException:Address already in use:bind
...
在命令行上使用
-Dgrails.server.port.http=9999
启动grails。并将GRAILS_OPTS环境变量设置为-Dgrails.server.port.http=9999
,您已经尝试过了。还是不行。同样的错误显示了Grails的哪个版本?版本是3.0.1,我在Windows7中运行。是的,在文件application.yml中添加服务器:端口:9999。是否更改了默认端口。谢谢