USocketNet – Using PM2 commands on CLI

You are here:
< Back
MONITORING SERVER HEALTH IN TERMS OF RESOURCES.
+ ‘pm2 save’ : Save the current process list as a dump to be able to restore on computer restart.
+ ‘pm2 resurrect’ : Restart all process list before computer shutdown which has been saved.
+ ‘pm2 delete all’ : Delete all instance of a process in the current machine.
+ ‘pm2 delete id/index’ : Delete abruptly the current instance of the Node JS app.
+ ‘pm2 stop id/index’ : Stop the current instance of the Node JS app.
+ ‘pm2 start id/index’ : Start the current instance of the Node JS app.
+ ‘pm2 restart id/index’ : Restart the current instance of the Node JS app.
+ ‘pm2 ls’ : Show all instance of the current machine in tabulated format.
+ ‘pm2 show id/index’ : Show information of the current instance except for port.
+ ‘pm2 logs id/index’ : Show the console logging of the target instance.
Constantly evolving with the latest software design techniques and related technologies. Please feel free to browse my Qualifications.

Leave your Thoughts