I have already installed Mongodb on my mac but the process is currently not running. How do I start the Mongodb service so that I can start using the commands?
相关问题
- MongoDB can not create unique sparse index (duplic
- Spring Data MongoDB - lazy access to some fields
- Golang mongodb aggregation
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
相关文章
- 现在使用swift开发ios应用好还是swift?
- mongodb有没有什么办法禁止读取数据的时候进行缓存
- mongodb-aggregate聚合查询分组后如何获得多字段
- Visual Studio Code, MAC OS X, OmniSharp server is
- mongodb error: how do I make sure that your journa
- How to track MongoDB requests from a console appli
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
Install and Run MongoDB with Homebrew
Open the Terminal app and type
After updating Homebrew
After downloading Mongo, create the “db” directory. This is where the Mongo data files will live. You can create the directory in the default location by running
Make sure that the /data/db directory has the right permissions by running
Run the Mongo daemon, in one of your terminal windows run
This should start the Mongo server. Run the Mongo shell, with the Mongo daemon running in one terminal, type mongo in another terminal window. This will run the Mongo shell which is an application to access data in MongoDB. To exit the Mongo shell run quit() To stop the Mongo daemon hit ctrl-c
start service:
https://treehouse.github.io/installation-guides/mac/mongo-mac.html