antonio antonio - 1 year ago 67
Node.js Question

distinct several services nodejs with ps aux | grep node

I have 6 services nodejs running in one server. Sometimes I need to kill one of them, but when I execute:

ps aux | grep node

All the 6 services appears with the same name. I dont know which one of them to kill.

There are some way to diff. them?


You can use PM2 to manage your nodejs applications. It can also help you in restarting the node process once server is rebooted.