To kill the pm2 –no-daemon process with Node, we run pm2
killor
kill`.
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
.