Grails - Error Server failed to start for port 8080: Address already in use
% grails run-app
:run
| Loading Grails 2.4.4
| Configuring classpath
| Running pre-compiled script
| Environment set to development
| Packaging Grails application
| Running Grails application
| Error Server failed to start for port 8080: Address already in use (Use --stacktrace to see the full trace)
コマンドを実行
% lsof -w -n -i tcp:8080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 3571 spacenet 27u IPv6 2469651 0t0 TCP *:http-alt (LISTEN)
プロセスをキルする
% kill -9 3571
もう一回 run-app すればOK
% grails run-app
:run
| Loading Grails 2.4.4
| Configuring classpath
| Running pre-compiled script.
| Environment set to development
| Packaging Grails application
| Running Grails application
| Server running. Browse to http://localhost:8080/