Easy spets to nstall MongoDB on Mac OS X ( I have used MAC OS – Mavericks)

  1. Mongodb Download Mac Os X Download
  2. Mongodb Osx
  3. Mongodb Mac Os
  4. Where Can I Download Mac Os X
  5. Mongodb Download For Windows

Mongodb Download Mac Os X Download

Install MongoDB on Mac OS X 10.9 Raw install-mongodb.md Install MongoDB with Homebrew. Brew install mongodb mkdir -p /data/db. Set permissions for the. I'm having some difficulty configuring PHP to integrate with MongoDB on my Mac.I can confirm that PHP is running correctly, and the php.ini file I am tinkering with is the correct one (I can.

Step 1: Download MongoDB:

Download MongoDB for MAC OS from official MongoDB site:

Step 2: Install MongoDB:

Step 3: Create MongoDB Data Directory:

By default, MongoDB write/store data into the /data/db folder, you need to create this folder manually and assign proper permission as given below:

Step 4: Set you PATH on Bash Profile for MongoDB:

Create a ~/.bash_profile file if not exists else update, and assign /usr/local/mongodb/bin to $PATH environment variable, so that you can access MongoDB on commands easily.

Step 5: Setting for auto start MongoDB:

To auto start yor installed mongoDB, create a launchd job on your Mac OS.

And add the following content to “/Library/LaunchDaemons/mongodb.plist”

Save the file and load the above job:

Catalina

Now restart your MAC OS.

Step 6: Start MongoDB:

If you already have added the above steps then MongoDB will start by the time your MAC OS started.

Otherwise you have to start MongoDB by using the below command:

Now ready to use MongoDB,

Mongodb Osx

In this post we will see How to install MongoDB on Mac OS X. MongoDB is one of the most used, open-source document database, and NoSQL database. MongoDB is developed by 10gen.

STEP 1 – Downloading MongoDB .tgz file

Mongodb

Visit MongoDB official website and download the .tgz file from the community section of the website.
Now extract the downloded .tgz and mv the mongo directory to /usr/local/mongodb directory using following command in terminal.

STEP 2 – Create MongoDB Data directory (/data/db)

MongoDB stores the data into the /data/db directory by default, so we need to create this directory and also assign proper permission using chown command.
Open the terminal run the following command

Mongodb Mac Os

STEP 3 – Set mongodb/bin PATH to ~/.bash_profile

Where Can I Download Mac Os X

Mongodb Download Mac Os X

Now we need to set the envirent variable for MongoDb, So the mongo and mongod command can be recognized from the terminal.
For that we need to add the mongodb/bin path to the ~/.bash_profile file.

Now .bash_profile file will open in a text editor. In this file add the following exports

Now restart your terminal and verify the mongodb version by following commands

STEP 4 – Start MongoDB

In order to work with mongodb we need to first run the mongod command which starts the mongo daemon .
So open two different terminals.
Now in

Windows

terminal 1

run the following command

Now in

terminal 2

run the following command

Mongodb Download For Windows

Video : How to install MongoDB on Mac OS X