Control window running MongoDB

1. Switch to the bin directory of MongoDB

cd C:\Program Files\MongoDB\Server\5.0\bin

2. Start the service. Enter the command: mongod --dbpath C:\Program Files\MongoDB\Server\5.0\bin

mongod --dbpath C:\Program Files\MongoDB\Server\5.0\bin

3. Enter http://localhost:27017 in the browser and see the following information, indicating that the opening is successful:insert image description here

Guess you like

Origin blog.csdn.net/jiangjunyuan168/article/details/124359328