WINDOS10 Installing MongoDB and configuring

Source: Internet
Author: User
Tags mongodb server

Think about it or write it, after all, online tutorials have a lot of pits.

First download MongoDB, if you suspect the official website slow, then you can go to my Baidu cloud download link: Http://pan.baidu.com/s/1pKEWTBX Password: v3y4, install after download, note : You'd better install this to D-drive (meaning you only need to install the installation position C: change to D:), so that the future of the file you do not need to change, I have helped you to fix it, after the next step is the next installation completed.

After installation, find your installation location, if you follow the above said to do so position should be D:\Program files\mongodb\server\3.4, in the inside a new mongo.conf, and copy the following code to save, note that the encoding method is Utf-8 (I press the moment is this step pit for a long time)

Dbpath=d:\program files\mongodb\server\3.4\data #数据库路径  logpath=d:\program files\mongodb\server\3.4 \logs\mongo.log #日志输出文件路径  logappend=true  #错误日志采用追加模式  Journal=true #启用日志文件, enable  quiet=true #这个选项可以过滤掉一些无用的日志信息 by default , set to False if you want to debug using  port

Create a few subfolders under the 3.4 folder, named data, etc, and logs, and create a new named Mong.log under the Logs folder.

  run cmd as an administrator (show emphasis!!!) enter into the D:\Program files\mongodb\server\3.4\bin inside, input the following command and return, if there is no error, shut him down, no use

The following start to configure environment variables, find the computer environment variables, this computer right-click Properties, advanced system settings, environment variables, new, variable named MongoDB variable value of D:\Program files\mongodb\server\3.4\

Click OK, find path, click on him, add this in front and click OK.

%mongodb%\bin;d:\program Files\mongodb\server\3.4\bin;

Find the service, if you can't find it, then look at this https://jingyan.baidu.com/article/ E5c39bf5ad52ed39d7603328.html, find and then go to the MongoDB service, click Start, wait to start, open cmd input MONGO, you will see the following code, indicating that you installed successfully

MongoDB Shell version v3.4.9connecting TO:MONGODB://127.0.0.1:27017MongoDB Server version : 3.4.9Server has startup warnings:2017-10-22t18:37:40.715+0800 I CONTROL  [Initandlisten] 2017-10-22t18:37:40.715+0800 I CONTROL for the    database. 2017-10-22t18:37:40.715+0800 i CONTROL  [initandlisten] * *          Read and write access to data and configuration I s unrestricted. 2017-10-22t18:37:40.715+0800 I CONTROL  [Initandlisten]

After the operation of the database, you can refer to this blog I wrote http://www.cnblogs.com/qiaohong/p/7716717.html

   

WINDOS10 Installing MongoDB and configuring

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.