📌  相关文章
📜  如何运行多端口节点 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:57.110000             🧑  作者: Mango

代码示例3
var express = require('express');

let app1 = express();
let app2 = express();

app1.listen(3000, () => {
  console.log("Started server on 3000");
});

app2.listen(3002, () => {
  console.log("Started server on 3002");   
});