mongodb启动

rm-rf/data/mongodb_data/*&&/usr/local/mongodb/bin/mongod

--dbpath=/data/mongodb_data/ --logpath=/data/mongodb_log/mongodb.log

netstat -nptl | grep mongod查看mongo是否启动

http://my.oschina.net/zhuzhu0129/blog/53290

 netstat -nptl | grep mongod

 cd /usr/local/mongodb/mongodb-linux-x86_64-2.0.4

 bin/mongod -port 10000 --dbpath=/data/mongodb/data/ --logpath=/data/mongodb/log/mongodb.log

相关推荐