node.js的安装
1.nodejs官网https://nodejs.org/en/download/,下载安装包
环境配置:http://www.cnblogs.com/starof/p/5194716.html
2.搭建web服务器
express框架安装
1)在node命令行模式下输入以下命令
npm install -g express
简单服务器配置
var http=require('http');
http.createServer(function (request,response){
response.writeHead(200,{'Content-Type':'text/plain'})
response.end("hello,world\n");
}).listen(8887);
console.log('Server runing at http://127.0.0.1:8887');
https://jingyan.baidu.com/article/64d05a023e0447de55f73ba0.html