一,开启Apache
//开启apache: sudo apachectl start
//重启apache: sudo apachectl restart
//关闭apache: sudo apachectl stop
二,简易http请求demo
http.js
var http = require('http')
http
.createServer(function(req, res){
res.writeHead(200, {
'Content-Type': 'text/plain'})
res.