MongoDB installation Configuration
Installation
MongoDB's website for MongoDB. When downloading, you can choose either to install the package or to compress the package.
When the download is complete, double-click the installation package and install it.
After the installation is complete, you can see the directories seen in the installation directory
Configuring Environment variables
The EXE in the directory can be understood as a toolset that MongoDB provides to developers, and to make it easier to use these tools, we add this directory to the environment variables so that we can run the tools globally.
Create a storage directory
Before starting the MongoDB service, we need to specify the location of the MongoDB data store first.
Set up the storage directory on the E-disk E:\mongodb\data\
Start the MONGO service
Open cmd, input mongod.exe-dbpath=e:\mongodb\data\, enter start service
If the startup succeeds it will show up as:
You can see the log display in the diagram, the service is turned on and listening on port 27017.
Enter http://localhost:27017 in the browser
If it appears
It looks like you is trying to access MongoDB over HTTP on the native driver port.
Indicates that the service started successfully.
Enter the MongoDB command line
Open a new CMD window, enter Mongo.exe to enter the command line
Article Foreverpx
Article original link: MongoDB installation configuration
MongoDB installation Configuration