1, download mongodb-win32-x86_64-2.2.1 to any one of the letter or any directory
2. Create a new batch file, which is mainly used to install MongoDB server into service:
The code is as follows |
Copy Code |
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 that the program files in the batch are to be used "" because there are spaces in the path.
1, the following d:/mongo_db_server is automatically generated, folder name can be customized
2, D:/mongo_db_server/log/log.txt designated MONGO storage location
3, 27017 is the MONGO default port number
3, 64-bit Windows to execute this batch file with administrator privileges, or run an error
4, to Administrative tools-services to see if there is MONGO DB this service, start the service can be installed successfully.
5, you can use Mongovue this client program to open this database, the default username SA, password is empty, the database can not be filled out