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
  • 4,503
  • 9
  • 45
  • 62
tim
  • 57
  • 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
  • 392
  • 1
  • 7
  • 26