Quit to set up node.js on centos6

STEP1: install dependencies and compile tools.

yum install libtool automake autoconf gcc-c++ openssl-devel

STEP2: download node.js package, tar and make install.

wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz

tar -zvxf node-v0.10.26.tar.gz

make && make install

STEP3: Check if nodejs and npm have been installed.

node -v

npm -v

STEP4: install express

npm install -g express-generator

STEP5: install mongodb

You should add respository for mongo.

vi /etc/yum.repos.d/10gen.repo

[10gen]

name=10gen Repository

baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64

gpgcheck=0

Then you'll see info via texting "yum info mongo-10gen-server"

Last, install server and client.

yum install mongo-10gen-server

yum install mongo-10gen

service mongod start

/etc/mongod.conf

Notice: chown mongod data file.

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: