installation
环境信息:deepin linux 15.4.1
1 |
|
默认配置文件:/etc/mongod.conf
默认数据存储路径:/var/lib/mongodb
默认服务地址:127.0.0.1:27017
mongd服务:
1 |
|
console
1 |
|
GUI client
Robo 3T (formerly Robomongo) is the free lightweight GUI available for Windows, Mac, and Linux for MongoDB enthusiasts.
Studio 3T is the MongoDB GUI and IDE available for Windows, Mac, and Linux. Free for non-commercial.
get started
mongodb中的collection
类似与RMDBS中的table
#唯一,手动设定或者mongodb自动生成
_id, ObjectID
# 切换到tutorial数据库,不需要显示创建database和collection(除非设置为strict模式)
> use tutorial
db.<collection>.<command>
command: insert/remove/update/find/count
db.getCollectionNames()