1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-05 08:08:02 +00:00

Add Kill Everything Running On A Certain Port as a unix til.

This commit is contained in:
jbranchaud
2015-10-17 09:40:16 -05:00
parent f5004fc21e
commit 4d75ff14ce
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# Kill Everything Running On A Certain Port
You can quickly kill everything running on a certain port with the following
command.
```bash
sudo kill `sudo lsof -t -i:3000`
```
This gets a list of pids for all the processes and then kills them.
[source](http://stackoverflow.com/questions/9346211/how-to-kill-a-process-on-a-port-on-ubuntu)