What is pm2 and why use it?

Node.js testing, performance and deployment · Freshers

Model answer

pm2 is a process manager for Node. It keeps your app running, restarts it after crashes, can run it on several CPU cores in cluster mode, manages logs, and starts it again after a server reboot (pm2 startup and pm2 save).

Learn this topic

Deploy a MERN App to a VPS with pm2, nginx and HTTPS (Let's Encrypt) in the course MERN Stack Full Course: MongoDB, Express, React and Node.js.

Sign in to add your own answer.

More questions