express server port configuration issue with pm2 cluster mode
问题 Problem: We start pm2 in cluster mode, and pm2 starts as many processes as there are cpu cores, pm2 also tries to start as many node servers as there are cpu cores but the problem here is that it fails to start as many servers because they all try and start on the same port that is 3000, which already gets occupied by the first node server We using nginx and proxy it to 3000 port. we are using pm2 in cluster mode with the following configuration: { "apps" : [{ "script" : "npm", "instances" :