在播放控制台上发出“运行”命令时,如何更改播放框架在开发模式下使用的默认端口。
这是针对 playframework 2.0 beta 的。
在命令行或 application.conf 中使用 http.port 配置参数似乎没有效果:
C:\dev\prototype\activiti-preso>play run --http.port=8080
[info] Loading project definition from C:\dev\prototype\activiti-preso\project
[info] Set current project to activiti-preso (in build file:/C:/dev/prototype/activiti-preso/)
Windows, really? Ok, disabling colors.
--- (Running the application from SBT, auto-reloading is enabled) ---
[error] org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:9000
[error] Use 'last' for the full log.