Getting Started with MongoDB Learning notes installation and configuration

Source: Internet
Author: User

Download MongoDB:

Download and unzip to use.

In order to start convenient and unified management, in the MONGO root directory to establish/data,/logs,/conf folder.

Create the mongodb.conf file under the Conf folder with the following basic configuration:

#数据库数据存放目录dbpath =/usr/local/mongodb/data# Database log storage directory logpath=/usr/local/mongodb/logs/mongodb.log# Log in Append logappend = true# Port number default is 27017port=27017# run the process in the background fork=true# turn on user authentication #auth=true# turn off HTTP interface, turn off HTTP port access by default # nohttpinterface=true# enable the log file, enabled by default journal=true# This option can filter out some useless log information, if you need to debug use set to Falsequiet=true

MONGO Basic Command parsing:

Start MONGO:

./mongod-f. /conf/mongodb.conf

Client connections to verify the following:

./mongo

Try the command:

This way, MongoDB's Getting Started deployment and installation is done!

Getting Started with MongoDB Learning notes installation and configuration

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.