MongoDB is a high-performance document-based database that introduces the installation and configuration of MONGDB in a Windows environment
Get MongoDB
Open the official website www.mongodb.org, find the download link on the top right of the page
Click Download to download
Currently the latest version is 3.2.4, download good after selecting the installation directory, here select d:\mongo3.2
Configure MongoDB
Create a new Mongo.config file under directory d:\mongo3.2, this file is used to configure MongoDB,
Create a new directory db under D:\mongo3.2\bin to hold the database
Create a new directory log under D:\mongo3.2\bin to hold log information
Enter the following in the Mongi.config file
Dbpath=d:\mongo3.2\bin\dblogpath=d:\mongo3.2\bin\log\log.logport=27018servicename= Mongodbmasterservicedisplayname=mongodbmasterdisplayname
Configuration file Description:
ServiceName: Specifies the name of the service, primarily used to create multiple services in a stand-alone environment for related testing, and production environments are not typically set up
Servicedisplayname: Specifies the display name of the service, primarily used to create multiple services in a stand-alone environment for related testing, and production environments are not typically set up
Open the Cmd window, navigate to the MongoDB installation directory bin, and enter the following:
Mongod--config d:\mongo3.2\mongi.config--install to generate MongoDB services
Installation and configuration of MongoDB in Windows environment