Created
May 16, 2013 01:02
-
-
Save OscarGodson/5588676 to your computer and use it in GitHub Desktop.
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
# http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/#install-from-10gen-builds | |
# Run curl from wherever you want mongo installed. It will run fine anywhere, but you probably | |
# don't want to have a mongo folder on your desktop ;) | |
$ curl http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.3.tgz > mongodb.tgz | |
$ tar -zxvf mongodb.tgz | |
$ sudo mkdir -p /data/db | |
$ sudo chown `id -u` /data/db | |
# After that I have these things in my bashrc file to run mongo: | |
# alias mongo:start='cd ~/Dev/mongodb/bin/;./mongod' | |
# alias mongo:open='cd ~/Dev/mongodb/bin/;./mongo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment