简体   繁体   中英

pm2 stopped running my program. Why and when?

I had a node process running with pm2. It showed up in the result of pm2 list . Now I see the process isn't running anymore, and pm2 list is empty.

Are there any pm2 logs which show me when and why it stopped running my node process?

Well first of all you have the pm2 logs command that will show you logs, but pm2 is running by the user that ran the pm2 start commant. Meanning that if you were in sudo mode and ran pm2 start you will not see the application list from a regular user.

If this is not the issue, you should know that if you restart your machine, the list deletes. if you want to keep the list after restart, you need to run pm2 save after you finish starting your applications/json configuration file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM