Mongo DB

"Agility, Scalability, Performance Database"

PLATFORM SUPPORT Starting in version 3.0, MongoDB only supports OS X versions 10.7 (Lion) on Intel x86-64 and later.

Install MongoDB

You can install MongoDB with Homebrew or manually. This section describes both.

1. Update Homebrew’s package database. In a system shell, issue the following command:

brew update

2.Install MongoDB. You can install MongoDB via brew with several different options. Use one of the following operations:

Install the MongoDB Binaries To install the MongoDB binaries, issue the following command in a system shell:

brew install mongodb

brew install mongodb --with-openssl

Build MongoDB from Source with TLS/SSL Support To build MongoDB from the source files and include TLS/SSL support, issue the following from a system shell:

Install the Latest Development Release of MongoDB To install the latest development release for use in testing and development, issue the following command in a system shell:

brew install mongodb --devel

Install MongoDB Manually Only install MongoDB using this procedure if you cannot use homebrew.

1. Download the binary files for the desired release of MongoDB. Download the binaries from https://www.mongodb.org/ downloads.

For example, to download the latest release through the shell, issue the following:

curl -O https://fastdl.mongodb.org/ osx/mongodb-osx-x86_64-3.0.4.tgz

2.Extract the files from the downloaded archive. For example, from a system shell, you can extract through the tar command:

tar -zxvf mongodb-osx-x86_64-3.0.4.tgz

3.Copy the extracted archive to the target directory. Copy the extracted folder to the location from which MongoDB will run.

mkdir -p mongodb cp -R -n mongodb-osx-x86_ 64-3.0.4/ mongodb

4.Ensure the location of the binaries is in the PATH variable. The MongoDB binaries are in the bin/ directory of the archive. To ensure that the binaries are in your PATH, you can modify your PATH.

For example, you can add the following line to your shell’s rc file (e.g. ~/.bashrc):

export PATH= /bin:$PATH Replace with the path to the extracted MongoDB archive.

Link: Mongo DB

“Built by developers like you at MongoDB. Highly Scalable Scale up or scale out horizontally, from a single server to thousands of nodes. Deploy in the cloud and across multiple data centers. Flexible Data Model MongoDB’s document data model makes it easy for you to store data of any structure and dynamically modify the schema. Fastest-Growing Community Join the world’s fastest-growing database community. MongoDB stands behind its software to ensure your success, providing software and services to make life easier.”

“If you are going to walk on thin ice, you might as well dance”