0
votes

Need help installing MongoDB.
I am new to MongoDB and am trying to install MongoDB on my MacBook. Here are the series of steps I'm following but no luck:

  1. Downloaded MongoDB tar file (mongodb-osx-x86_64-3.4.15-41-ge674cf7) from mongodb site: https://www.mongodb.org/dl/osx?_ga=2.246658509.897970786.1529983844-835081778.1524937167
  2. Extracted the tar file. In Terminal, navigated to the bin folder under mongodb-osx-x86_64-3.4.15-41-ge674cf7.
  3. Ran the following commands:
    i. mkdir -p /data/db
    ii. chmod 777 /data
    iii. chmod 777 /data/db
    iv. ./mongod
  4. The following happens:

Here is the screenshot

Can anyone please point out what I am doing wrong?

1

1 Answers

1
votes

Or You can install MongoDB using brew

brew install mongodb

Reference Link