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  
 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  
 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.