21
执行“运行”命令时,如何更改Play使用的默认端口(9000)?
在Play控制台上发出“运行”命令时,如何更改开发框架在开发模式下使用的默认端口。 这适用于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 …