Installing MongoDB under Windows

Source: Internet
Author: User
Tags install mongodb

Today tried to install MongoDB in WINDOWS7 environment, encountered some problems, here to do a record.

    • Download software, download the installation package at MongoDB website mongodb-win32-x86_64-2008plus-ssl-3.4.3-signed
    • After the download is complete, I have modified the installation location and placed it under the directory "C:\mongodb"
      * All the way next installation is complete. Next is the most problematic setting for MONGODB services.
    • Create the Data directory and the logs directory under directory "C:\mongodb" and create the file in the logs directory Mongodb.log
    • Create the mongodb.conf under directory "C:\mongodb" and fill in the configuration information:
    1. dbpath=C:\mongodb\data
    2. logpath=C:\mongodb\logs\mongo.log
    3. logappend=true
    4. journal=true
    5. quiet=true
    6. port=27017
    • Start the CMD interface and execute the following command:
    1. CD C : \mongodb\b in
    2. mongod -- config "C:\mongodb\mongo.conf" -- logpath "C:\mongodb\logs\mongo.log" -- install -- servicename "MongoDB"
    3. mongod exe -- remove -- servicename "MongoDB" #如果需要移除这个服务的话
    • Browser access http://127.0.0.1:27017 to see the following interface

Installing MongoDB under Windows

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.