1. Download mongodb-win32-x86_64-2.2.1 to any drive letter or any directory
2. Create a new batch file to install the MongoDB server to the service:
D :\ " Program Files " \ Mongodb-win32-x86_64- 2.2 . 1 \ Bin \ mongod-dbpath " D: \ mongo_db_server " -- Logpath " D: \ mongo_db_server \ log \ log.txt " -- Port 27017 -- Install
Note: during batch processingUse "" For program files because there are spaces in the path.
1.D: \ mongo_db_serverIs automatically generated, and the folder name can be customized
2,D: \ mongo_db_server \ log \ log.txt specifies the entry storage location of Mongo
3. 27017 is the default Mongo port number
3. In 64-bit windows, you must use the Administrator permission to execute this batch of files. Otherwise, an error is returned.
4. Check whether the Mongo dB service exists in the management tools-service and start the service to install it successfully.
5. You can use the terminal vue client.ProgramTo open this database. The default user name SA is used, and the password is empty. You do not need to enter the database name.