Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

这段代码在win7上会崩溃吗?

$
0
0
 const cluster=require ('cluster');
  const fs = require('fs');
  if (cluster.isMaster) {
    var worker=cluster.fork();
      var log=	 fs.createReadStream('access.log');
     log.pipe(worker.process.stdout);
 }else {
     console.log(process.pid);
 }

Viewing all articles
Browse latest Browse all 14821

Trending Articles