How to kill the pm2 --no-daemon process

Junya Kono picture Junya Kono · Jul 20, 2017 · Viewed 50.2k times · Source

I'm using pm2 as the process manager of Node.js.

In many cases, I think I will run it as a daemon process, but if you use it locally as debugging, I think that there are times when you use the --no-daemon option.

How do I end the process when moving pm2 with this --no-daemon option?

Answer

marekful picture marekful · Jul 20, 2017

You can try:

pm2 kill

or find the running PM2 process with:

ps aux | grep PM2

then kill with:

kill -9 [pid]