本文介绍了如何更改grails localhost端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从<$从 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 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.
推荐答案
更多推荐
如何更改grails localhost端口?
发布评论