何番煎じかわからないけど、自分用のメモ
環境
Ubuntu14.04(64bit)
nodejsのインストール
>$ sudo apt-get install -y nodejs npm
>$ nodejs -v
v0.10.25
Hello World
hello.js
var http = require('http');
http.createServer(function(request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Helllo World¥n');
}).listen(8080);
>$ nodejs hello.js
待機状態になったらブラウザからアクセスする。
>$ http://hostname:8080