
This should create a new directory mongodb-osx-x86_64-2.2.2. Then you need to untar the download into that directory. I call it mongo2_2 here but you can call it whatever you would like: mkdir mongo2_2 Then create an empty directory wherever you would like MongoDB to live. In addition, I will be using the 64-bit OSX version from their site. In this case, we’ll use the latest production release which is 2.2.2 at the time of this post. Again, I had already installed MongoDB via Homebrew using brew install mongodb, so I’ll show you how to install your own version outside of homebrew.įirst, you’ll need to download a version of MongoDB from their website. So, here are the steps I used for setting up a separate instance of MongoDB. Searching the web, I found very little information about how to setup multiple versions of MongoDB on the same local environment. However, I already had a local version of MongoDB v2.0 installed on my mac via Homebrew which I was using to test and development a production database that we were running. I was working on a problem that required MongoDB’s new aggregation framework that comes standard with MongoDB ~> 2.2. I ran into an interesting problem the other day. For more up-to-date information, I would check the MongoDB site or Google.

I am posting this just as a reference for those curious as to how I did this originally back in 2013. Some of this information may no longer work. This post was originally published in February 2013 on my old blog.
