Blog

Projects

Stacks

Snippets

About

Kill a specific port

The -i flag selects the lists of files any of whose Internet address matches the address specified in it.

List of open files

lsof -i tcp:3000

Ouput

COMMAND PID USER
node 33092 johndoe

Pass the -9 flag to SIGKILL the process (This will tell the OS to stop running the process)

Kill a specific port

kill -9 33092