MongoDB Installation Steps __mongodb

Source: Internet
Author: User
Tags create mongodb mongodb mongodb port number
1, first, to MongoDB official website http://www.mongodb.org/downloads download the corresponding installation package, such as: My own version of the download


2. Establish MongoDB folders and Mongodbdata folders on disk, as shown below:


3, the download of the installation package decompression, the extracted files are all copied to the MongoDB folder, the following figure:

4, in the Windows System DOS command line into the MongoDB Bin directory command as follows:

E: Representative: Enter the e-disk command (disk changes according to your needs)

CD \mongodb\bin Rep: entering Mongodb\bin directory command
5, enter the following command:

Mongo.exe--dbpath E:\MongoDBdata 6, Configuration environment variables

Input at the last side of the system variable path; E:\MongoDB\BIN Note: Precede with a semicolon. 7. Verify that the configuration is successful

CMD's DOS command line input Mongod--help has the following information input description validation successful

8. Create Mongodb.bat file as Startup service file (double-click Mongodb.bat file to start) First, create a name for the MONGO folder on the Desktop (folder location and name at random) Second, you create a batch file named Mongodb.bat in the Mongo folder, and the format must be a. bat file , then, edit the Mongodb.bat file, add the Mongod--dbpath E:\MongoDBdata to the file, and save it, as shown in the following figure:

9, create the Mongodb27017.bat file, as the boot Shell client file (that is, enter the MONGODB statement of the DOS window) edit Mongodb27017.bat, save the file after entering MONGO 127.0.0.1:27017, as shown in the following figure:

127.0.0.1 Local IP

27017 MongoDB Port number

10, first double-click Mongodb.bat file, start the MongoDB service, the following figure:


when you double-click the Mogondb27017.bat file, start the service that entered the MongoDB statement, as shown in the following figure:



the above for MongoDB installation and start service steps, welcome you for reference.



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.