This is node.js practice in rackhub.
cd
cd nave
./nave.sh use 0.7.2
cd
git clone git://gist.github.com/1756736.git node
cd node
node server.js
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello Rackhub.\n'); | |
}).listen(3000, "0.0.0.0"); | |
console.log('server.js start.'); |