Skip to content

Instantly share code, notes, and snippets.

@amitmerchant1990
Created November 16, 2017 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitmerchant1990/d5cf2a08bc47181ee9445c91e9702f35 to your computer and use it in GitHub Desktop.
Save amitmerchant1990/d5cf2a08bc47181ee9445c91e9702f35 to your computer and use it in GitHub Desktop.
Kill a node app

Assuming you are using linux If you need to stop some application running on some specific port use this and you know the port but not the process id. find the process id like this

netstat -plten | grep LISTEN | grep 3000

this will output some thing like this

tcp        0      0 :::10060                    :::*                          LISTEN      0          20465      3489/node    
where 3489 is the process id.

then do

kill -9 3489

to kill the procees

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment