Installing MongoDB and configuring

Source: Internet
Author: User
Tags create mongodb install mongodb win32

Download URL http://dl.mongodb.org/dl/win32/x86_64

Mongodb-win32-x86_64-2008plus-ssl-v3.4-latest.zip

Unzip D-Disk named MongoDB

New Data folder under MongoDB folder
Create db,log two folders under Data folder
Create a log file under the log folder Mongodb.log
Under the MongoDB folder, create a new mongod.cfg with the content
Systemlog:
Destination:file
Path:d:\mongodb\data\log\mongodb.log
Storage
Dbpath:d:\mongodb\data\db


CMD command-line installation

D:\mongodb\bin>mongod-dbpath "D:\mongodb\data\db"

Open http://127.0.0.1:27017/after installation is complete
See

It looks like you is trying to access MongoDB over HTTP on the native driver port.
The instructions have been installed successfully.

CMD Install MongoDB service, run as Administrator

"D:\mongodb\\mongod.exe"--config "D:\mongodb\mongod.cfg"--install

If you want the service to start automatically
Sc.exe Create MongoDB binpath= "D:\mongodb\bin\mongod.exe--service--config=\" D:\mongodb\mongod.cfg\ "" Displayname= " MongoDB "start=" Auto "

Open service
net start MongoDB

Stop the MongoDB service using the following command:

net stop MongoDB

Delete the MongoDB service using the following command:

"D:\MongoDB\bin\mongod.exe"--remove

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.