Install and configure mongodb in win10 system, win10mongodb
Download the msi 3.4.10 from the official website and install mongodb in the folder on disk D.
Then we start to configure:
Create a data folder in the installation path
Create another db folder in the data folder
D:/mongodb/data/db
Open the cmd (windows key + r Enter cmd) command line and enter the D: \ mongodb \ bin directory
Run the following command to start the mongodb service:
D:/mongodb/bin> mongod-dbpath D: \ mongodb \ data \ db
Open the browser and enter www. localhost: 27017 (this is the default port used by mongodb)
If It looks like you are trying to access MongoDB over HTTP on the native driver port appears on the page, the connection is successful.
Every input is very difficult to start, so I wrote the form of a batch file.
D:/mongodb/bin> mongod-dbpath D: \ mongodb \ data \ db
Save it as start. bat. It is very convenient to double-click it next time.
You can enter services. msc in the cmd window to open the service window and see that the mogodb service is actually started.
Go to the background shell and directly start the bindirectory double-click cmd.exe file. You can use shell to learn mongodb later.