Recently in the study of the website of Nodejs Building Station course, there is a MongoDB database installation, the video author did not talk about, so I went to find the information installed, here to record the installation process.
First login to the official website of MongoDB Download the official Windows Platform installation package, download Click Install, modify the installation path to C drive under the root path for
C:\MongoDB\
Open file path after installation and C:\MongoDB\ new file Mongo.config Open the content with the editor
Dbpath=D:\mongodb\data\dblogpath=d:\mongodb\log\mongo.log
Then in the corresponding drive letter to create the corresponding files and folders, at this time the Mongo.log is empty file directly set where you can
Every time we open the mongdb it's too much trouble, we add it into the system service
To run a command from within the command line
C:\MongoDB\bin\mongod-f C:\MongoDB\mongo.config-install
Then, in the command line, enter
Services.msc
Open the Local service bar for Windows to find the MongoDB service and start the service
MongoDB database, installation of Windows platform