important point
Mongodb6.0 is different from other versions, you must download mongodb and mongoshell
download
1、mongodb
https://www.mongodb.com/try/download/enterprise
mongodb - https://www.mongodb.com/try/download/enterprise
2、mongodbShell
mongodbShell - https://www.mongodb.com/try/download/shell
https://www.mongodb.com/try/download/shell
- Installation skipped
Configure environment variables
System Variables > Check Path > Edit
New > Paste the bin folder path under the installed mongoDB directory > Confirm
MongoDB Shell Copy
Open the downloaded MongoDB Shell compressed package > copy the files under the bin folder > paste it to the bin directory under the installed MongoDB folder
[copy demo]
【Paste demo picture】
cmd open mongodb
Open cmd and enter ↓
mongosh
mongodb service start
If the mongodb service is closed, you can use the following cmd command to start it
net start mongodb