Install and configure Mongodb in win7 to start at random.
Mongodb in win7 only needs to decompress the package to the corresponding folder, and then add it to the win7 path. Opening it under the CMD command may cause the server to reject it actively, so we chose to add it to the win7 service. The specific method is:
You need to create the following content in the folder below the path:
Data, logs Folder:
Then create a write address in mongod. cfg:
Logpath = D: \ mongodb \ logs \ mongodb. log
Dbpath = D: \ mongodb \ data
Run cmd as the administrator to enter the Directory and run the following command:
Mongod -- config D: \ mongodb \ mongod. cfg -- install
It will be displayed
Finally, enter services. msc in the running window or right-click the computer, choose manage> services and applications> services, and find Mongodb to enable the Service.