配置server.js文件 /server.jsconst egg = require('egg');const workers = Number(process.argv[2] || require('os').cpus().length);egg.startCluster({ workers, baseDir: __dirname,}); 安装pm2 cnpm i pm2 -g 启动 pm2 start server.js --name myegg-wechat