

The post shows how to install mongoDB in Mac OS X and the result. T20:11:50.713+0800 I COMMAND setting featureCompatibilityVersion to 3.4 T20:11:50.706+0800 I INDEX building index using bulk method build may temporarily use up to 500 megabytes of RAM T20:11:49.965+0800 I CONTROL git version: c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5 In this article, you will learn how to install a MongoDB on Mac, Windows, Ubuntu18.04, or run it straight out of a Docker Container and subsequently verify that the installation was successful. T20:11:49.965+0800 I CONTROL MongoDB starting : pid=51583 port=27017 dbpath=/Users/chengyihe/workspace/mongodb/db 64-bit host=nanshouoshisMBP If another place if preferred, then -dbpath flag could help assign another directory as mongoDB directory.

� /usr/local/Cellar/mongodb/3.4.6: 18 files, 267.5MBīy default, mongod uses /data/db as database directory. Or, if you don't want/need a background service you can just run: To have launchd start mongodb now and restart at login: If you need to have this software first in your PATH run:Įcho 'export PATH="/usr/local/opt/openssl/bin:$PATH"' > ~/.bash_profileįor compilers to find this software you may need to set:ĬPPFLAGS: -I/usr/local/opt/openssl/include This formula is keg-only, which means it was not symlinked into /usr/local,īecause Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries. => Pouring openssl-1.0.2l.el_Ī CA file has been bootstrapped using certificates from the SystemRoots => Installing mongodb dependency: openssl => Installing dependencies for mongodb: openssl I ran mongod with the command mongod -dbpath /data/db/.Įssentially, I’d like to know how the Hombrew and direct download installs differ and how my current setup might mess up future porjects, if at all.The post discusses installing mongoDB in Mac OS X. Since then, I’ve created a /data/db directory from the root and run both mongod and mongo, including inserting some tests, and everything worked fine. Mkdir data & echo 'mongod -config /usr/local/etc/nf -dbpath=data -rest -httpinterface' > mongod.sh & chmod a+x mongod.sh &. I was really unclear what was happening in step 6, so I didn’t execute that last command: I used this tutorial: How to Install the MEAN Stack on Mac OSX and followed the instructions up until step 5. I’ve already downloaded MongoDB using Homebrew, but a couple of tutorials I watched said that it’s better to download the tarball from the website. I’m adding MongoDB to my dev environment, and I’m trying to figure out what the fundamental differences between installing with Homebrew and downloading the tarball from the website are.
