Install MONGO database service under MongoDB windows

Source: Internet
Author: User
Tags install mongodb mongodb mongodb server mongodb windows win32 port number

1, download mongodb-win32-x86_64-2.2.1 to any one of the letter or any directory

2. Create a new batch file, which is mainly used to install MongoDB server into service:

The code is as follows Copy Code
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 that the program files in the batch are to be used "" because there are spaces in the path.

1, the following d:/mongo_db_server is automatically generated, folder name can be customized

2, D:/mongo_db_server/log/log.txt designated MONGO storage location

3, 27017 is the MONGO default port number

3, 64-bit Windows to execute this batch file with administrator privileges, or run an error

4, to Administrative tools-services to see if there is MONGO DB this service, start the service can be installed successfully.

5, you can use Mongovue this client program to open this database, the default username SA, password is empty, the database can not be filled out


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.