var express = require('express'); var app = express(); var path = require('path'); var request = require("request");//request 封装了 HTTP 请求的各种方法,让发起请求变得非常容易;https://www.npmjs.com/package/request
var server = app.listen(8889, "10.1.1.114",function(){ var host = server.address().address; var port = server.address().port; console.log("Server running at http://%s:%s", host, port) });