NODEJS
时间:2011-04-22 来源:NTTDoCoMo
nodejs的安装:
$ git clone git://github.com/joyent/node.git
$ cd node
$ ./configure
$ make
$ sudo make install
npm安装:
$ git clone git://github.com/isaacs/npm.git
$ sudo make install
mongodb安装:
去官网下载mongodb的压缩包,解压:
tar -zxvf mongodb-xxxxxxxxxx.tgz
进入mongodb的解压文件夹,先创建数据存放文件夹,默认存放在/data/db:
.bin/mongod --dbpath=xxxxxx --logpath=xxxxxxx
mongoose安装,:
$ git clone git://github.com/LearnBoost/mongoose.git
require.paths.unshift('/path/to/mongoose/lib');
var mongoose = require('mongoose');
$ git clone git://github.com/joyent/node.git
$ cd node
$ ./configure
$ make
$ sudo make install
npm安装:
$ git clone git://github.com/isaacs/npm.git
$ sudo make install
mongodb安装:
去官网下载mongodb的压缩包,解压:
tar -zxvf mongodb-xxxxxxxxxx.tgz
进入mongodb的解压文件夹,先创建数据存放文件夹,默认存放在/data/db:
.bin/mongod --dbpath=xxxxxx --logpath=xxxxxxx
mongoose安装,:
$ git clone git://github.com/LearnBoost/mongoose.git
require.paths.unshift('/path/to/mongoose/lib');
var mongoose = require('mongoose');
相关阅读 更多 +