MongoDB Study Notes (1) -- install MongoDB in Windows and take mongodb Study Notes
First, download the windows Installation Package for mongodb from the official website, select a 32-bit or 64-bit version based on your system type, and then follow the prompts to complete the next step. If the installation directory is not modified, it will be installed in the C: \ Program Files \ MongoDB directory by default. Find the official MongoDB tool under the C: \ Program Files \ MongoDB \ Server \ 3.0 \ bin directory. The Mongod application is the mongodb management and Installation tool, mongo is the default client software for mongodb.
After the installation is complete, find the computer -- properties -- Advanced System settings -- environment variable, and change the directory where mongod is located to C: add \ Program Files \ MongoDB \ Server \ 3.0 \ bin to the path variable of the system.
After adding the environment variables, create a C: \ Program Files \ mongodb folder under the MongoDB installation directory C: \ Program Files \ MongoDB \ data, in C: create a C: \ Program Files \ MongoDB \ data folder and a C: the \ Program Files \ MongoDB \ data \ log folder is used to store data and log Files. Create a text file named MondoDB. log in the log folder to store mongodb log information. After the creation is complete, right-click the Start menu -- all programs -- attachments -- command prompt -- run as administrator, and enter the following command in the command line:
Mongod -- dbpath "C: \ Program Files \ MongoDB \ data \ db" -- logpath "C: \ Program Files \ MongoDB \ data \ log \ MondoDB. log "-- directoryperdb -- install -- serviceName" MongoDB"
After the command is successfully executed, enter the following command under the command to start the mongodb service.
Net start MongoDB
After the installation is complete, mongodb is successfully installed and registered as a system service. You can enter mongo in the command line to log on to mongodb.
If it is windows 7, the system will prompt you to install the hotfix kb2731284 patch. Otherwise, there will be a vulnerability. In windows 8/8. 1, you do not need to install this patch. Attachment Software
1. hotfix kb2731284 patch http://pan.baidu.com/s/1i3Bt1y9
2. mongodb 3.0 64bit http://yunpan.cn/cQF2t8pBfSttJ access password da36