Linux下安装mongodb数据库

七。安装mongodb

cd /mapbar/app/
tar xvf  mongodb-linux-x86_64-2.0.3-rc0.tar
mkdir mongodb 
[root@localhost mongodb]# mv mongodb-linux-x86_64-2.0.3-rc0 /mapbar/app/mongodb/
cd mongodb
[root@localhost /]# mkdir mongodata
[root@localhost /]# mkdir mongolog

cd  mongodb-linux-x86_64-2.0.3-rc0/bin

./mongod --dbpath=/mapbar/app/mongodb/mongodata/ --logpath=/mapbar/app/mongodb/mongolog/mongodb.log --bind_ip 192.168.111.128 --port 20000 --fork --nohttpinterface  --logappend&