nodejs渐入佳境[17]-mongodb数据库入门

下载mongodb

https://www.mongodb.com

mongod

解压,进入bin目录

1
2
//-dbpath代表数据放置在哪里
./mongod -dbpath /Users/jackson/Downloads/mongodb-data

waiting for connections on port 27017

新开窗口,测试测试

1
2
3
4
5
6
> ./mongo

> db.Todos.insert({text:'Film new node course'})
WriteResult({ "nInserted" : 1 })
> db.Todos.find()
{ "_id" : ObjectId("5bee6fc6ae6967bacc3d709b"), "text" : "Film new node course" }

可视化

下载:
https://studio3t.com/download-now/