Mongodb installation and startup 1. First download the corresponding Mongodb version based on the corresponding operating system. This article describes the operations in the 64bitwindows7 environment. 2. decompress the package and place it in the specified position, such as E: dev. In the folder shown in, you can also customize other paths for storing data files. Create a logs folder in this path,
Mongodb installation and startup 1. First download the corresponding Mongodb version based on the corresponding operating system. This article describes the operations in the 64-bit Windows 7 environment. 2. decompress the package and place it in the specified position, such as E: \ dev. In the folder shown in, you can also customize other paths for storing data files. Create a logs folder in this path,
Install and start Mongodb
1. First, download the corresponding Mongodb version based on the corresponding operating system. This article describes the operation in the 64bit Windows 7 environment.
2. decompress the package and place it in the specified position, such as E: \ dev.
In the folder shown in, you can also customize other paths for storing data files.
Create a logs folder in this path to store logs. Create a mongodb. log under logs (important ).
3. mongodb startup is similar to mysql startup. To avoid executing the batch file startup service every time, we create a Mongodb startup service here.
Run the following command in the Command window:
E:/dev/mongodb/bin/mongod -- install -- serviceName MongoDB -- serviceDisplayName MongoDB -- logpathE:/dev/mongodb/logs/mongodb. log-- Dbpath e:/dev/mongodb/data/db -- directoryperdb
Note: Some log paths must be fully written.
Here we will briefly introduce the parameters used and their meanings:
-- Install: install the MongoDB service.
-- ServiceName: the service name used to install the Windows Service
-- ServiceDisplayName: Service name displayed in Windows Service Manager
You can set the startup mode as needed.
By connecting to the default test database, the service is successfully started.
Cracked version), you can download to my resources, free of charge, do not point.