JavaScript Answers

How to find a Node.js app running and kill it?

Spread the love

To find a Node.js app running and kill it, we run the ps and kill commands.

To find the node process number, we run

$ ps -e | grep node

with ps.

We find the node process with grep.

And then we run

$ kill -9 132

to run kill to kill the process with ID 132 where 132 is returned by ps -e | grep node.

We replace this with the actual ID of the process.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published.