MongoDB
Software Installation
Official website to download: Download https://www.mongodb.com/download-center/community
Select the appropriate version to download, the download is complete, all the way to the next step, select a full install, and configure the look and log data directory path to the directory, then next, pay attention: the lower left corner there is a default client installation prompts the check, we need to get rid of this check, and then all the way next.
Start and stop the server side
Starting and stopping of two ways, way:
#以管理员的身份运行cmd,并通过以下命令操作
net start MongoDB 启动服务端
net stop MongoDB 停止服务端
Second way:
Enter Computer Management
Click to go to the next chart MongoDB server and then manually start or stop
In fact, in essence, start and stop the implementation of the executable command file path on the map, so we can execute the command directly:
"C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe" --config "C:\Program Files\MongoDB\Server\4.2\bin\mongod.cfg" --service
If you need to perform MongoDB commands in any path you need to add MongoDB's bin directory to environment variable