开启一个服务
var http = require('http')
http.createServer(function(request, response){
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('hello world');
}).listen(8888)
console.log('server running at http://127.0.0.1:8888/')
var http = require('http')
http.createServer(function(request, response){
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('hello world');
}).listen(8888)
console.log('server running at http://127.0.0.1:8888/')