var http = require('http');
http.createServer(function(req,res) {
console.log('hello world' + req.url);
if(req.url === "/favicon.ico") return;
//阻止响应
res.writeHead(200,{'Content-Type':'text/plain'});
res.end('Hello world\n');
}).listen(3000,'127.0.0.1');
console.log('Sever running at http://127.0.0.1:3000/');