Can I customize the number of restarts when PM2 is restarted?

example is as follows:

PM2 can you customize the number of times of this restart when restarting? I checked the document for a long time but didn"t see the relevant information. Ask for guidance? PM2 version is V3.2.2

Jan.11,2022

after being answered by a big shot in the CNode community, it is found that using

pm2 reset xxx 
The

command can reset the number of restarts to 0 without restarting the application. As for custom times, it doesn't make much sense in practice.


you can specify max_restarts parameters in the ecosystem file. For more information, please refer to https://pm2.io/doc/en/runtime.

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b384f9-41144.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b384f9-41144.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?