如何在Windows cmd而不是Play控制台下以port = 9001运行Play框架? [英] how can I run play framework with port=9001 under windows cmd not under play console?

查看:85
本文介绍了如何在Windows cmd而不是Play控制台下以port = 9001运行Play框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Play控制台下,我可以键入"run 9001"以在端口9001中运行服务器. 但是在Windows cmd下,当我键入"play run 9001"时,它不起作用.

Under Play console, I can type "run 9001" to run a server in port 9001. But Under windows cmd, When I type "play run 9001", it does not work.

请帮助.

推荐答案

完全像这样写(带配额)

Write exactly like this (with quotas)

play "run 9001"

您还可以添加其他选项(同样重要的是配额)

you can also add other options (again quotas are important)

play -DapplyEvolutions.default=true "start 9003"

最新修改:

在Windows上,您可以尝试使用这种技巧来避免出现错误消息9001"" was unexpected at this time

On Windows you can try such trick to avoid error message 9001"" was unexpected at this time

play '-Dhttp.port=9004' 'run 9004'

play '-Dconfig.file=C:\apps\some-app\conf\other.conf' "run 9005"

这篇关于如何在Windows cmd而不是Play控制台下以port = 9001运行Play框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆