Installation and configuration of MongoDB under Windows
Description: Because of learning the Python crawler framework, you need to install MongoDB, where the installation process is documented. (see a lot of articles on the web, thanks to the ancestors here.)
First, the official website: https://www.mongodb.com/download-center?jmp=nav#community, directly installs the 3.6.3 version of the MSI words will appear the card dead situation. (That's what I do)
Can be found in: http://dl.mongodb.org/dl/win32/x86_64 this link to find all versions of the installation package and compression package, I installed the version see:
Second, installation (decompression)
Create a MongoDB folder in the installation location, copy all the extracted files to the folder (my following):
Third, add environment variables
Add the installation directory to the system's path variable for later related operations
IV. Create data and log storage folders (must, otherwise not start MongoDB)
Create the Data folder in any directory to hold the database, create the logs folder to hold the log file
V. Create a system service
Open cmd in the bin directory of the installation directory
Input:
Mongod.exe--dbpath=d:\mongodb\data--logpath=d:\mongodb\logs\mongodb.log--install (change the DB directory and logs directory to your own, Note the \mongodb.log file behind the logs folder is required and will be created automatically)
Six, start test:
Open cmd, input command: net start MongoDB
After startup, open the browser to enter the following address, the following interface is started successfully
Close service: net stop MongoDB
MongoDB Common command line arguments
The basic configuration is complete.
the first time to write, the shortcomings of the excuse ..... ...
Installation of MongoDB under Windows