Categories
JavaScript Answers

How to kill the pm2 –no-daemon process with Node?

Spread the love

To kill the pm2 –no-daemon process with Node, we run pm2 killorkill`.

For instance, we run

pm2 kill

to kill all pm2 processes.

Or we run

ps aux | grep PM2

to get the process ID of the pm2 process.

And we run

kill -9 [pid]

to send the KILL signal to the process with ID [pid] that we got from ps aux | grep PM2.

By John Au-Yeung

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

Leave a Reply

Your email address will not be published. Required fields are marked *