MongoDB Installation and Environment configuration

Source: Internet
Author: User

A moment to download

Official website: Https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.6.3-signed.msi

The official website may not open, will this URL directly to the Thunder download.

Two environment configuration

FILE-level structure

Mongdb>server>3.6>bin

Add Bin folder to environment variable

1) Under 3.6, create a new data folder and create a new DB folder under the Data folder

CMD command:

Mongod--dbpath ' db folder absolute path '

After the execution, the MONGO started up. Open a new CMD interface, execute the MONGO command, you can.

2) Add the boot MONGO to the computer's service.

1

2

How to add to the service of the computer?

Create a new Mongod.cfg file under the 3.6 folder

The content is as follows: path is changed according to the individual's address.

systemlog:    destination:file    path:d:\program files\mongodb\server\3.6\data\log\ Mongod.logstorage:    dbpath:d:\program files\mongodb\server\3.6\data\db

Create a new log folder under the Data folder and create a new Mongod.log file under the log folder.

CMD command:

" D:\Program files\mongodb\server\3.6\mongod.cfg " --servicename MongoDB--Install2018--08t21::36.308+ 0800 I CONTROL  "D:\Program files\mongodb\server\3.6\data\log\mongod.log"  "D:\Program files\mongodb\server\3.6\data\log\mongod.log.2018-04-08t13-07-36" .

As shown above, the MONGO join service is successful.

MongoDB Installation and Environment 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.