node.jsでもろもろ設定

( javascript )

インストール

wget http://nodejs.org/dist/node-v0.4.5.tar.gz
tar zxvf node-v0.4.5.tar.gz
cd node-v0.4.5
./configure
make 
make install

ライブラリ関連のモジュールをインストール

curl http://npmjs.org/install.sh | sh

npm install mysql
npm install express
npm install ejs
 

テストプログラムをListen状態にしておいてGETで情報が取得できるか確認する。

node test.js

curl http://127.0.0.1:8124

参考URL

http://sakuratan.biz/archives/3101 http://expressjs.com/ http://nodejs.org/