1. Download MongoDB
Address: "Https://www.mongodb.com/download-center?jmp=nav#atlas" seems to need to register, you can download from below
"Http://dl.mongodb.org/dl/win32/x86_64"
2. Installing MongoDB
3. Create a database folder under the installation path: data/db
4. Start the MongoDB service, as below, and specify the database path as follows
5. Verify that the service is started
Enter address in reference to the port address on the CMD log: Indicates success
6. Start the client:
7. Insert Operation:
Db.test.insert ({' A ': ' B '})
8. MongoDB service can be written into the service:
(1) Create log file path C:\test\MongoDB\Server\3.4\data\logs\mongo.log
(2) Admin cmd run:
【
Mongod--bind_ip 0.0.0.0--logpath C:\test\MongoDB\Server\3.4\data\logs\mongo.log--logappend--dbpath C:\test\ Mongodb\server\3.4\data\db--port 27017--servicename "MongoDB"--servicedisplayname "MongoDB"--install
】
(3) Successful configuration
The installation and use of MongoDB