2

I want to use port 9999 to launch the grails server:

grails -Dserver.port=9999 run-app

however, it doesn't work. The console show an error:

Failed to start end point associated with ProtocolHandler["http-nio-8080"]
   java.net.BindException:Address already in use:bind
...
mins
  • 6,478
  • 12
  • 56
  • 75
tim
  • 67
  • 2

1 Answers1

0

Launch grails with -Dgrails.server.port.http=9999 on the command line. And set the GRAILS_OPTS environment variable to -Dgrails.server.port.http=9999

NewBee Developer
  • 432
  • 2
  • 9
  • 26