MongoDB Learning Note (i)--windows installing MongoDB

Source: Internet
Author: User
Tags mongodb windows

  First download the MongoDB Windows Installer from the official website, choose 32-bit or 64-bit version according to your system type, and then follow the prompts to install the next step. If the installation directory is not modified, it is installed by default in the C:\Program files\mongodb directory. Find the official tools for MONGODB operations in the C:\Program files\mongodb\server\3.0\bin directory, where the Mongod application is the Management installation tool for MongoDB, MONGO is the default client software for MongoDB.

after the installation is complete, locate the computer-Properties-Advanced system settings-environment variable and add the directory where Mongod is C:\Program files\mongodb\server\3.0\bin to the system's path variable.

After you add the environment variable, create a C:\Program files\mongodb\data folder under the MongoDB installation directory C:\Program Files\mongodb , in the c \ Program Files\mongodb\data folder to create a C:\Program files\mongodb\data\db folder and a C:\Program files\ The Mongodb\data\log folder is used to store data and log files. Under the log folder, create a text file named MondoDB.log that holds the log information for MongoDB. After creation, in the Start menu-All Programs-attachments-command Prompt-right-click Run as Administrator, enter the following command at 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 executes successfully, continue to enter the following command under the command to start the MongoDB service

net start MongoDB

After execution completes, the installation is successful and the MongoDB is registered as a system service, and you can enter MONGO login MongoDB at the command line.

If the Windows 7 system prompts you to install the hotfix kb2731284 patch, there is a risk of a vulnerability, and Windows 8/8.1 does not need to install the patch. Software included

1, Hotfix kb2731284 Patch Http://pan.baidu.com/s/1i3Bt1y9

2. MongoDB 3.0 64bit Http://yunpan.cn/cQF2t8pBfSttJ access password da36

  

 

MongoDB Learning Note (i)--windows installing MongoDB

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.