node+pm2+log4js多进程输出日志

node+pm2+log4js多进程输出日志

没安装pm2前先全局安装一下npm install pm2 -g集群配置log4js项目启动文件配置:const http = require('http');const log4js = require('log4js');const app = require('../app');//require('./eureka')const defaultPort = 3007;... 阅读详情