mongo README

The project's README from github.com/mongodb/mongo. As one markdown file: README.md.

Logo MongoDB README

Welcome to MongoDB!

Components

Download MongoDB

Download the MongoDB Shell

Building

See Building MongoDB.

Running

For command line options invoke:

$ ./mongod --help

To run a single server database:

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

Installing 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.

Drivers

Client drivers for most programming languages are available at https://docs.mongodb.com/manual/applications/drivers/.

Bug Reports

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

Packaging

Packages are created dynamically by the buildscripts/packager.py script. This will generate RPM and Debian packages.

Learn MongoDB

Cloud Hosted MongoDB

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

Forums

LICENSE

MongoDB is free and the source is available. Versions released prior to October 16, 2018 are published under the AGPL. All versions released after October 16, 2018, including patch fixes for prior versions, are published under the Server Side Public License (SSPL) v1. See individual files for details which will specify the license applicable to each file. Files subject to the SSPL will be noted in their headers.

mongo (mongodb/mongo)

Searching Database…

28.6K ·GitHub
这是什么?MongoDB,一个广泛使用的 NoSQL 数据库。这个仓库就是数据库本身:mongod 是存储数据的服务器进程,mongos 是它的分片路由器。
它是我安装的程序,还是我加到代码里的库?这是一个需要安装运行的服务器:mongod 作为数据库服务器进程运行,客户端应用通过网络通过驱动程序连接到它。
我该怎么把它跑起来?在 macOS 上,官方文档推荐用 Homebrew:brew tap mongodb/brew。也可以用 docker pull mongodb/mongodb-community-server 拉取官方镜像。
要实际操作这些数据,我还需要什么?安装 MongoDB Shell(brew install mongosh)以便从终端连接,然后在你的应用里使用客户端驱动程序——大多数编程语言都有对应的驱动。
它可以免费使用吗,还是在许可协议上有什么坑?可以免费使用,源代码也是公开的,但并不是宽松许可:2018 年 10 月 16 日之后发布的版本采用 SSPL v1,更早的版本采用 AGPL——如果你打算向他人提供 MongoDB 服务,建议仔细阅读相关条款。
我可以在哪些平台上运行它?macOS 可通过 Homebrew 安装,Linux 有生成的 RPM 和 Debian 软件包,任何装有 Docker 的机器也都可以。它是一个自托管服务器,运行在你自己的基础设施上。
有没有图形界面可以浏览数据?有——MongoDB Compass。运行 MongoDB 自带的 installcompass 脚本,它会为你的平台下载合适的 Compass 安装包并完成安装。
如果我不想自己管理服务器,有没有托管的选项?有,README 里链接了一个云托管的 MongoDB 服务,这样你就不用自己运行 mongod 也能使用数据库。
大多数人是用这个仓库自己编译,还是直接安装现成的包?这个仓库是数据库的 C++ 源代码。大多数用户直接安装现成的构建版本(Homebrew、Docker、RPM/Debian);从源码编译的步骤在 Building MongoDB 部分单独说明。
Creator
mongodb
Size
1.4 GB
Stars
28.6K
Updated
CommitOct 16
Age
17y
Commits · 90 Days