1. Download the installation package on the MONGODB official website
Https://www.mongodb.com/download-center
Select the installation package that corresponds to your system download
2. Unzip the installation package in the D disk, in order to facilitate later, to the folder naming the time as simple as possible
3. Create a d://mongodb/data/db in your MongoDB
4. Open the cmd command line and enter the following command in CMD in the D:\mongodb/bin file to start the Monggodb
D:/mongodb\bin>mongod--dbpath d:/mongodb\data\db
5.mongodb default, the link port is 27017, if you can open localhost:27017 correctly, it means that it is correct
6. For later convenience, we can set up MongoDB for Windows service, this operation is implemented every time the boot of the MongoDB can automatically start
Create a new folder under Data in MongoDB Log, and then add a file in the log mongodb.log file
Add a mongo.config to the D:/mongodb folder, open the Mongo.config file with Notepad and fill it in
And then cmd to open it as an administrator, into the D:/mongodb/bin directory
Enter the following command Mongod--config D:\mongoDB\mongo.config--install--servicename "MongoDB"
7. Open the CMD input services.msc to view the MongoDB service, click on it to start.
Or you can enter services.msc in the run, or you can view the MongoDB service
Note: In this process, it is safe to open cmd with an administrator every time.
A vue+node+mongodb front and rear login page Https://github.com/GainLoss/vue-node-mongodb
MongoDB installation and start-up