下载安装
https://www.mongodb.com/download-center?jmp=nav#community
.msi
配置
create folder storing data in dir \Mongo
md \data\db
start mongodb service in dir \Mongo\bin
mongod.exe
open another command prompt in dir \Mongo\bin
enter the mongo shell
mongo.exe
Mongo shell operations
db // display the current db
show dbs // display all existing dbs
show collections // display all collections in the current db
use <database> // switch to <database>, if it doesnt exist, creat it and switch in.
网友评论