
T01:38:55.270-0700 I STORAGE wiredtiger_open config: create,cache_size=4G,session_max=20000,eviction=(threads_max=4),config_base= false,statistics=(fast), log=(enabled= true,archive= true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=( wait=60, log_size=2GB),statistics_ log=( wait=0), If MongoDB is running successfully, the output of terminal is similar as follows: If the system PATH variable includes the location of mongod binary, and data directory is not the default one, then use this command: If the system PATH variable does not include the location of mongod binary, and data directory is the default one, use this command instead: If the system PATH variable includes the location of mongod binary, and data directory is the default one, then use this command: data/db is default data directory, but here I create a different data directory:Īnd then set permission for that directory, the most brute force approach is as follows (not recommended): To init MongoDB, we should at first create a data directory for it: Or install the latest development release of MongoDB through this command: Or build MongoDB from source with TLS/SSL support: If we have already installed one, update it through this command:Īnd then install MongoDB binaries using this command:


To test whether it is installed successfully, run this command:īrew

Here we use Homebrew to install it.Īt first, we should install Homebrew if we do not have one running on Mac. There are multiple ways to install MOngoDB on Mac. Here is the tutorial about how to install and run MonogoDB on mac.
