node.js

2010/09/18の話ですが、SSS(G)勉強会でnode.jsについて調べました。詳細はSSS(G)のnode.jsについてのページに記載されています。

この他、CentOS上でnode.js を試してみたので、そのときのメモを公開しておきます。

$ wget http://nodejs.org/dist/node-v0.2.2.tar.gz
$ tar xzf node-v0.2.2.tar.gz
$ cd node-v0.2.2
$ ./configure --prefix=/home/koyama/applications/node.js
$ make
$ make install
$ cd ..
$ vi example.js
----
var sys = require('sys'), http = require('http');
http.createServer(function (req, res) {
  setTimeout(function () {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello World\n');
  }, 2000);
}).listen(8000);
sys.puts('Server running at http://127.0.0.1:8000/');
----
$ ~/applications/node.js/bin/node example.js

CentOSのデフォルトインストールでは、gcc-c++ が足りなかった

# yum install gcc-c++

参考
node.js and ruby
公式サイト http://nodejs.org/
日本語サイト http://nodejs.jp/nodejs.org_ja/
Node.jsを使ってこんなことができるよ、サイト http://howtonode.org/
Node.js用のWebサービスフレームワーク http://expressjs.com/
こんな感じの手順でできるか? http://d.hatena.ne.jp/vwxyz/20100623/1277262328
sourceforge.jpでのニュース。 http://sourceforge.jp/magazine/10/08/23/0343208
redis key-value store http://code.google.com/p/redis/

同じタグの記事: CentOS
同じタグの記事: node.js
同じカテゴリの記事: Program
関連書籍: CentOS
関連書籍: node.js