Created
June 29, 2011 02:19
-
-
Save victorcampos/1052821 to your computer and use it in GitHub Desktop.
Startup and shutdown scripts for MongoDB 1.8.2 (setting journaling, dbpath, daemonize, logging and rest interface)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
kill -2 `cat /data/mongod.lock` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./mongod --dbpath /data/ --fork --logpath /var/log/mongodb/mongodb.log --logappend --rest --journal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment