Why do the error log files generated by pm2 have log-0.log, log-2.log, log-3.log, etc? What is the difference between these documents?
0, 2 and 3 correspond to processes managed in pm2. You use
pm2 list
Look at the id corresponding to the process, and you can also use the corresponding ID.pm2 logs 0
This command listens to the process log of the corresponding id