pm2怎么指定master
node集群启动模式通常会这样写
123456789101112131415var cluster = require('cluster'); var http = require('http'); var os = require('os');var numCPUs = os.cpus().length;if(cluster.isMaster){ for (...
阅读全文…