mongodb บน ubuntu

http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

add source
deb http://downloads.mongodb.org/distros/ubuntu 9.4 10gen
deb http://downloads.mongodb.org/distros/ubuntu 9.10 10gen
deb http://downloads.mongodb.org/distros/ubuntu 10.4 10gen

add key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

ทดสอบ
mongod --dbpath /var/lib/mongodb run

ตรวจสอบ
ps -ef|grep mongod

ทดสอบ start
sudo service mongodb start

หา lib ไม่เจอ
cd /usr/lib
sudo ln -s xulrunner-1.9.2.9/libmozjs.so

No comments: