This is mongo working dir for rackhub.
cd $HOME
git clone git://gist.github.com/1756150.git mongodb
cd mongodb
./start_mongod.sh
mongo # enter mongo shell.
./stop_mongod.sh
mongodb.log | |
db/* |
mongod --dbpath ./db \ | |
--fork --logpath ./mongodb.log \ | |
--logappend --bind_ip 127.0.0.1 \ | |
--pidfilepath /tmp/mongod.pid |
#!/bin/bash | |
kill -9 `cat /tmp/mongod.pid`; rm /tmp/mongod.pid |