MongoDB Study Notes (1) -- install MongoDB in Windows and take mongodb Study Notes

Source: Internet
Author: User
Tags install mongodb

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

 

  

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.