Install Mongo Database Service in MongoDB windows

Source: Internet
Author: User
Tags mongodb server mongodb windows

1. Download mongodb-win32-x86_64-2.2.1 to any drive letter or any directory

 

2. Create a new batch file to install the MongoDB server to the service:

D :\ " Program Files " \ Mongodb-win32-x86_64- 2.2 . 1 \ Bin \ mongod-dbpath " D: \ mongo_db_server " -- Logpath " D: \ mongo_db_server \ log \ log.txt " -- Port 27017 -- Install

Note: during batch processingUse "" For program files because there are spaces in the path.

1.D: \ mongo_db_serverIs automatically generated, and the folder name can be customized

2,D: \ mongo_db_server \ log \ log.txt specifies the entry storage location of Mongo

3. 27017 is the default Mongo port number

 

3. In 64-bit windows, you must use the Administrator permission to execute this batch of files. Otherwise, an error is returned.

 

4. Check whether the Mongo dB service exists in the management tools-service and start the service to install it successfully.

 

5. You can use the terminal vue client.ProgramTo open this database. The default user name SA is used, and the password is empty. You do not need to enter the database name.

 

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.