Install with Homebrew
Brew services start mongodb To open the mongo shell and start using MongoDB simply type the command “mongo” into your terminal. If everything was successful, you should see a message in your. Compass in MongoDB 3.4 is excellent. You get a fast overview of your data's behaviour and you can easily identify a bottleneck or a slow query that could be causing performance issues, which means you can get an even faster solution for your problem. Brew tap mongodb/brew. Brew install mongodb-community. Brew services start mongodb-community. For more information regarding the same, refer the following link. Linuxbrew mongodb Addeddate 2021-04-07 18:24:00 Identifier linuxbrew-mongodb Scanner Internet Archive Python library 1.9.4. Plus-circle Add Review.
Set up launchctl to auto start mongod
/usr/local/opt/mongodb/
is a symlink to /usr/local/Cellar/mongodb/x.y.z
(e.g., 2.4.9
)
You can use launchctl to start and stop mongod
You can also more conveniently use brew
to start, stop, and verify service status
Notes
The default plist provided by homebrew stores the mongod configuration at /usr/local/etc/mongod.conf
. This configuration specifies the dbpath
to be /usr/local/var/mongodb
instead of the default /data/db
.
Brew Install Mongodb
Mongodb Client Mac
For more about launchctl
see: