First, prepare
First in Google or Baidu search "MongoDB", into the official website (https://www.mongodb.com/) to download.
second, the installation
Select a custom configuration and enter the installation path.
The installation path C:\Program Files\mongodb\server\3.6\bin, there are many MongoDB executable files.
Note: Mongo.exe is responsible for the use of the database, Mongod.exe is responsible for the boot, MongoDB service program, Mongodump.exe is data backup, Mongoexport.exe data export, mongoimport data import, Mongorestore.exe data Also Original.
in the bin directory, press and hold "shift+ right mouse button" to open the command line directly from this directory.
To run MongoDB, you need to create a new folder of data (wherever it is built); In the data directory, in a new DB folder, for storing database-related information and configuration;
Start MONGOBD;
Connect with MongoDB's command-line program:
In inserting a data to the test database error: E QUERY thread1 syntaxerror:missing; Before statement @shell: 1:19
Cause: When inserting a dictionary type, the braces are wrapped (embarrassed ...). )
three or one simple configurations
Because the command line starts MongoDB too inconvenient, try to add it to the service and click Start from the service:
To run a command with an administrator:
1 in the Data directory, new logs folder, storage log;
2 new text file Mongo.log, this is the MongoDB log file;
3) Specify log files, etc.
Note: Be sure to use the command line with administrator privileges.
4 Computer--right key--"management-" service
5) Verify
Iv. recommended Visualization Tools
MongoDB Visual Client Tools recommended: robo3t-1.2.1
Download Address: Https://robomongo.org/download
v. Supplemental Ubuntu installation
Ubuntu does not need to create data/db, guidance DBPath, direct start MongoDB.