mongodb & nodejs:
- 安装mongdb:
- apt-get安装:
- do apt-get install mongodb-server
- axel -n 30 http://downloads.mongodb.org/linux/mongodb-linux-x86_64-1.6.4.tgz
- sudo adduser mongodb
- sudo mkdir /var/lib/mongodb
- sudo mkdir /var/log/mongodb
- chown mongdb /var/lib/mongodb
- 安装依赖:
- sudo apt-get -y install tcsh git-core scons g++
- sudo apt-get -y install libpcre++-dev libboost-dev libreadline-dev xulrunner-1.9.1-dev
- tar -xvf mongodb-linux-x86_64-1.6.4.tgz
- sudo mkdir -p /data/db
- sudo chown $(id -u) /data/db
- apt-get安装:
- 安装nodejs:
- install dependency:
- sudo apt-get install g++ curl libssl-dev apache2-utils
- sudo apt-get install git-core
- git clone https://github.com/joyent/node.git
- cd node
- export JOBS=2
- NJS_HOME=/opt/node.js
- sudo mkdir $NJS_HOME
- ./configure –prefix=$NJS_HOME
- sudo chown $(id -u) $NJS_HOME -R
- make && make install
- export PATH=$NJS_HOME/bin:$PATH
- curl http://npmjs.org/install.sh | sh
- ln -sv /opt/node.js/lib/node_modules ~/.node_modules
- sudo vi /etc/bash.bashrc
- NJS_HOME=”/opt/node.js”
- export PATH=$PATH:$NJS_HOME/bin
- npm install express -g
- npm install mongodb -g
- npm install node-static -g
- npm install nodeunit -g
- install dependency:
- misc
- svn checkout https://myspace/repos/kalengo/trunk/cloudguide –depth=immediates
- cd cloudguide
- svn up –set-depth=infinity etc bin lib opt
- 参考
- https://github.com/joyent/node/wiki/Installation
- http://www.mongodb.org/display/DOCS/Quickstart+Unix
- http://blog.lxneng.com/?p=54
- http://blog.mongodb.org/post/812003773/node-js-and-mongodb
- http://nodejs.org/docs/v0.4.6/
- http://blog.new-bamboo.co.uk/2009/12/7/real-time-online-activity-monitor-example-with-node-js-and-websocket
发表评论
要发表评论,您必须先登录。