【问题标题】:"grails -Dserver.port=9999 run-app" not effective [duplicate]“grails -Dserver.port=9999 run-app”无效[重复]
【发布时间】:2015-04-09 06:13:12
【问题描述】:

我想使用端口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
...

【问题讨论】:

  • 什么版本的 Grails?
  • 版本是3.0.1,我在windows7下运行
  • 是的,添加服务器:
    port: 9999 在文件 application.yml 中更改默认端口。谢谢

标签: grails


【解决方案1】:

在命令行上使用-Dgrails.server.port.http=9999 启动grails。并将 GRAILS_OPTS 环境变量设置为-Dgrails.server.port.http=9999

【讨论】:

  • 试过了。还是不行。同样的错误显示
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-01-13
  • 2021-11-20
  • 2015-08-17
相关资源
最近更新 更多