Skip to content

Instantly share code, notes, and snippets.

@JosielFaleiros
Created September 29, 2017 19:00
Show Gist options
  • Save JosielFaleiros/03a79a931bdfe5dae812b6f0e333ca87 to your computer and use it in GitHub Desktop.
Save JosielFaleiros/03a79a931bdfe5dae812b6f0e333ca87 to your computer and use it in GitHub Desktop.
to kill a process running on port
To list any process listening to the port 8080:
lsof -i:8080
To kill any process listening to the port 8080:
kill $(lsof -t -i:8080)
or more violently:
kill -9 $(lsof -t -i:8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment