- MERN Quick Start Guide
- Eddy Wilson Iriarte Koroliova
- 87字
- 2021-06-25 21:30:10
How to do it...
Visit the documentation website of MongoDB at https://docs.mongodb.com/master/installation/ for instructions and check the Tutorials section for your specific platform.
After installation, an instance of mongod-, the daemon process for MongoDB-, can be started in a standalone fashion:
- Open a new Terminal
- Create a new directory named data, which will contain the Mongo database
- Type mongod --port 27017 --dbpath /data/ to start a new instance and create a database
- Open another Terminal
- Type mongo --port 27017 to connect a Mongo shell to the instance