Mongodb 1 quick start deployment
Quick Start deployment of Mongodb
1. Download mongdb and unzip vue
I downloaded the windows zip package here.
2. decompress the package
Rename mongodb
3. Create data, log, and repair files in the mongodb directory
4. Create start. bat and repar. bat
The Start. bat code is as follows:
Mongod -- dbpath = F: \ mongodb \ data -- port 27017 -- logpath = F: \ mongodb \ logs \ mongodb. log
Note: -- dbpath specifies the data storage path and port number, and -- logpath specifies the log storage path
The Repair. bat code is as follows:
Mongod -- repair -- dbpath F: \ mongodb \ data -- repairpath F: \ mongodb \ repair \
Note: Specify the temporary file storage path for restoration. When mongodb unexpectedly exits and cannot be started properly, click repair.
5. Click start. bat to start
6. Open mongovue.exe.
Deployed successfully.