Skip to content

Instantly share code, notes, and snippets.

@sowawa
Created February 7, 2012 00:26
Show Gist options
  • Save sowawa/1756150 to your computer and use it in GitHub Desktop.
Save sowawa/1756150 to your computer and use it in GitHub Desktop.
mongodb for rackhub.
mongodb.log
db/*

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment