I am a Mac noob here.

When I try to run my Grails project I get:

 Error Server failed to start for port 8080: Address already in use (Use --stacktrace to see the full trace)

On Windows, I would have just done netstat -aon and killed the process on 8080.

On a Mac, I’m new, so I haven’t much of a clue. I tried:

lsof -i | grep 8080

and couldn’t see anything on port 8080.

So I tried just:

lsof -i

and I still couldn’t see anything on 8080.

Any tips?

有帮助吗?

解决方案

Possibly a case for moving to superuser, but "lsof -i :8080" will exactly show what's listening on that port.

其他提示

As per my answer at SO. This is easier than @nitind's answer.

In the console window there is a X and XX icon. When you hover the cursor over it. You'll see balloons showing "Remove Launch" and "Remove All Terminated Launches".

Click them both. Eclipse will clear out all the existing servers so you can relaunch you server on the your default port.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top