Skip to content

Instantly share code, notes, and snippets.

@OscarGodson
Created May 16, 2013 01:02
Show Gist options
  • Save OscarGodson/5588676 to your computer and use it in GitHub Desktop.
Save OscarGodson/5588676 to your computer and use it in GitHub Desktop.
# 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