MongoDB Installation Errors and principles

Source: Internet
Author: User
Tags install mongodb

    1. Install MongoDB, the default is installed to the "C:\Program files\mongodb\" here, I did not find the information in the registration table MongoDB, so guess it just unzip it to that location, it just unzip it to that location, it just unzipped it to that location (3 important things to say.) When I install MongoDB, the specified directory has not been installed, directly cut his installed files to the directory I need to install, that is to say we can modify it casually. I moved this directory to "D:\AppData\MongoDB" and made some adjustments to it, after which the directory structure was "D:\AppData\MongoDB\Server\bin".
    2. Create a new Data folder in the directory "D:\AppData\MongoDB", where you can create a new DB folder and a log folder to hold the database and logs files separately.
    3. Configure the PATH environment variable to add "D:\AppData\MongoDB\Server\bin;" in the PATH environment variable, so that it is convenient for us to execute the mongod command on any path.
    4. Install the MongoDB service and create a new configuration file under the "D:\AppData\MongoDB" folder mongod.cfg with the following contents:
      systemLog:destination: filepath: D:\AppData\MongoDB\data\log\mongod.logstorage:dbPath: D:\AppData\MongoDB\data\db
      Start cmd as an administrator
      Installation Services:mongod --config "D:\AppData\MongoDB\Server\3.2\mongod.cfg" --install
      Start the service:net start MongoDB
      Then enter the MONGO command and it will automatically connect to test.
    5. Configure visual management, I use Robomongo this is a decompression version, unzip (or install) directly after the open, new connection can be

MongoDB Installation Errors and principles

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.