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.