MongoDB Installation and Startup
1. First download the corresponding MongoDB version according to the corresponding operating system, this document is described as 64bit windows7 environment operation.
2. Unzip the tarball into the location you specified, such as E:\dev.
In the folder shown, you can also customize other paths for placing data files.
Create a new Logs folder under this path to store the log. Create a new Mongodb.log (very important) under logs.
3.mongodb startup is a bit similar to MySQL startup, in order to avoid having to perform batch file startup services every time, we create a MongoDB startup service here.
In the command window, execute:
E:/dev/mongodb/bin/mongod--install--servicename mongodb--servicedisplayname mongodb--logpathe:/dev/mongodb/ Logs/mongodb.log --dbpath e:/dev/mongodb/data/db--directoryperdb
Note: The log part path is to be written in full.
Here is a brief introduction to the parameters used and their meanings:
--install: Installing MongoDB Service
--servicename: Service name to use when installing Windows services
--servicedisplayname: The name of the service that is displayed in Windows Service Manager
You can set the startup mode according to your own needs.
Connect to the default test library to indicate that the service started successfully.
MongoDB data is stored as a key-value pair, similar to the JSON data format.
Next will recommend a client tool Mongovue (cracked version), you can download to my resources, free of charge, not points.