This time all installs mainly is on the Win7. Install the MongoDB, install the Third-party library Pymongo, and install the Pycharm MongoDB plug-in. 1. Install MongoDB
1) Download MongoDB
My computer is 64-bit, choose the version according to the situation.
Install Mongodb-win32-x86_64-2008plus-ssl-3.4.7-signed.msi all the way OK on it.
2) Setting up MongoDB environment
We first set up a directory to save the data, if using the default path in cmd input:
Of course, it can be built in other paths (there are spaces that need to be enclosed in quotes).
3) Start MongoDB
At the command line input (MongoDB installation path, I am the default installation, C:\Program Files\mongodb\server\3.4\bin\mongod.exe):
Note: This step may eject the Security Warning dialog box, saying that Mongod.exe will be able to select the environment, choose a private network, work and home network.
The words "Waiting for connections" on port 27017 after seeing [Initandlisten] represent success.
4) Connection MongoDB
Notice that the window that just succeeded does not close, and then reopen a command window:
The Welcome to the MongoDB Shell appears on behalf of the successful installation.
5 Configure MongoDB for Windows system
Close the command window above to create a log folder under the Data folder
Close the window, create a mongod.cfg file under C:\Program files\mongodb\server\3.4, and enter the contents:
Systemlog:
Four spaces Destination: a space file
Four spaces Path: a space c:\data\log\mongod.log
Storage
Four spaces DBPath: a space c:\data\db
The real situation should be:
Systemlog:
Destination:file
Path:c:\data\log\mongod.log
Storage
Dbpath:c:\data\db
Need to pay attention to the above four spaces must not use the TAB key, manually knocking four spaces can ...
6) Installation of MongoDB service
Reopen a command window as an administrator (search for CMD at the beginning and right-click to find it)
Input:
Attention:
"C:\Program Files\mongodb\server\3.4\bin\mongod.exe" a space –config a space "C:\Pr
Ogram files\mongodb\server\3.4\mongod.cfg "A space –install 2. Install a third-party library Pymongo
Python3 Input:
PIP3 Install Pymongo
Anaconda inside with, not in Anaconda promopt input:
Conda Install Pymongo 3. Install MongoDB plugin for pycharm
Here is the use of Pycharm plug-ins to view the MongoDB run. If the IDE does not have Pycharm, then follow the tutorial to install Pycharm.
Open pycharm, install MONGO plugin, and follow these steps:
Of course I have installed, click to install, installation completed restart Pycharm.
If the pycharm on the right side of the Mongo Explorer column appears blank, you need to set the following steps:
Then click on the Setting button on the map and follow the steps below to succeed.
The image below is successful.