Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

第 44 章 MongoDB Shell

目录

44.1. shutdownServer
44.2. show 查看命令
44.2.1. show dbs
44.2.2. show collections
44.2.3. show users
44.2.4. show profile
44.3. 切换数据库
44.4. Collection 管理
44.4.1. 创建 Collection
44.4.2. 删除 collection
44.4.3. 删除字段
44.5. save
44.6. insert
44.7. update
44.7.1. multi 更新所有数据
44.7.2. upsert 更新,如果不存在则插入数据
44.7.3. updateMany 更新集合中的所有数据
44.8. remove
44.8.1. 删除条件使用 _id
44.9. count()
44.10. 查询
44.10.1. find() MongoDB 2.x
44.10.2. find() MongoDB 3.x
44.10.3. group()
44.11. aggregate
44.11.1. project
44.11.2. groupby + sum
44.12. Indexes 索引
44.12.1. 查看索引
44.12.2. 创建索引
44.12.3. 删除索引
44.12.4. 唯一索引
44.12.5. 复合索引
44.12.6. 稀疏索引
44.13. Map-Reduce
44.13.1. 使用 Map-Reduce 统计Web 服务器 access.log 日志文件
44.14. 内嵌对象
44.14.1. Array / List 列表类型
44.15. Javascript 脚本

44.1. shutdownServer

关闭MongoDB数据库

		
db.shutdownServer()