【MongoDB】MongoDB6. Installation and use

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

insert image description here

New > Paste the bin folder path under the installed mongoDB directory > Confirm

insert image description here

insert image description here

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]
insert image description here

【Paste demo picture】
insert image description here

cmd open mongodb

Open cmd and enter ↓

mongosh

insert image description here

mongodb service start

If the mongodb service is closed, you can use the following cmd command to start it

net start mongodb

Guess you like

Origin blog.csdn.net/qq_43614372/article/details/130504008