Q:

brew install mongodb

//Starts Mongdb server @ mongodb://127.0.0.1:27017/
brew services start [email protected]
mongod --config /usr/local/etc/mongod.conf --fork
ps aux | grep -v grep | grep mongod
mongo
2
//Starts Mongdb server @ mongodb://127.0.0.1:27017/
brew services start [email protected]

//Stops Mongdb server @ mongodb://127.0.0.1:27017/
brew services stop [email protected]

//mongo
mongo - starts the mongo client


1
brew tap mongodb/brew
0
brew tap mongodb/brew
#step 1
2
brew services start [email protected]
#Step 3 to run as a service
3
command to activate mongodb through a terminal

mongod --dbpath /usr/local/var/mongodb --logpath /usr/local/var/log/mongodb/mongo.log --fork
1
mongod --config /usr/local/etc/mongod.conf --fork
0
#Step 1
$ brew tap mongodb/brew

#Step 2 to install latest community version
$ brew install mongodb-community
0
//be sure you have GNU's GCC:
brew install gcc
-1

New to Communities?

Join the community