mongoDB README

2020-03-02  本文已影响0人  秋元_92a3

MongoDB 简介

Welcome to MongoDB!

组件

mongod - 数据库服务
mongos - 共享路由
mongo - 使用客户端,连接数据库服务,进入命令控制台的脚本

常用命令

mongodump - Create a binary dump of the contents of a database.
mongorestore - Restore data from the output created by mongodump.
mongoexport - 将集合的内容导出成 JSON 或 CSV.
mongoimport - 从 JSON, CSV or TSV 中向mongo导入数据
mongofiles - 从GridFS里 增加、删除、查询文件列表
mongostat - 显示正在运营的mongo或mongo集群的状态
bsondump - Convert BSON files into human-readable formats.
mongoreplay - Traffic capture and replay tool.
mongotop - 记录mongo读写数据的时间
install_compass - Installs MongoDB Compass for your platform.

构建

See docs/building.md.

运行

For command line options invoke:

$ ./mongod --help

运行一个单例的数据库服务

$ sudo mkdir -p /data/db
$ ./mongod
$
$ # The mongo javascript shell connects to localhost and test database by default:
$ ./mongo
> help

安装 COMPASS

You can install compass using the install_compass script packaged with MongoDB:

$ ./install_compass

This will download the appropriate MongoDB Compass package for your platform
and install it.

驱动

对于大多数语言的驱动依赖,可以在下面地址中找到。通过在shell终端中执行mongo命令,进入mongo控制台,在工作台中可发发sql查询你想要的信息。
https://docs.mongodb.com/manual/applications/drivers/

调试报告

See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports.

安装包

安装包通过在buildscript目录下的package.py脚本动态构建。运行脚本将生成RPM安装包和Debian安装包。

文档

https://docs.mongodb.com/manual/

mongoDB的云主机

https://www.mongodb.com/cloud/atlas

邮件列表

https://groups.google.com/forum/#!forum/mongodb-user

A forum for technical questions about using MongoDB.

https://groups.google.com/forum/#!forum/mongodb-dev

A forum for technical questions about building and developing MongoDB.

学习mongo

https://university.mongodb.com/

证书

MongoDB开源的免费的。在2018年十月6号之前发布的版本能够在AGPL下找到。在2018年十月六号之后发布的版本,其证书可以在SSPLv.1下找到。

上一篇 下一篇

猜你喜欢

热点阅读