如何更改grails localhost端口?

编程入门 行业动态 更新时间:2024-10-25 11:21:05
本文介绍了如何更改grails localhost端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用grails 2.0.4。并且我想为本地主机使用端口:8090而不是8080。因此,需要帮助将端口永久更改为8090.

I'm using grails 2.0.4. And I want to use port:8090 instead of 8080 for localhost. So need help to change the port to 8090 permanently.

推荐答案

  • 从<$从 Config.groovy 中更改 grails.serverURL c $ c>http:// localhost:8080 / $ {appName}至http:// localhost:8090 / $ {appName}。
  • 在命令行中使用 -Dgrails.server.port.http = 8090 启动grails。将 GRAILS_OPTS 环境变量设置为 -Dgrails.server.port.http = 8090 以自动应用。
  • Change grails.serverURL in Config.groovy from "localhost:8080/${appName}" to "localhost:8090/${appName}".
  • Launch grails with -Dgrails.server.port.http=8090 on the command line. Set the GRAILS_OPTS environment variable to -Dgrails.server.port.http=8090 to have it applied automatically.
  • 更多推荐

    如何更改grails localhost端口?

    本文发布于:2023-08-07 19:42:49,感谢您对本站的认可!
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:端口   如何更改   grails   localhost

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!