2021-06-17 22:14:37 +02:00
|
|
|
# ![Logo](docs/leaf.svg) MongoDB README
|
|
|
|
|
|
|
|
Welcome to MongoDB!
|
|
|
|
|
|
|
|
## Components
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
- `mongod` - The database server.
|
|
|
|
- `mongos` - Sharding router.
|
|
|
|
- `mongo` - The database shell (uses interactive javascript).
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2022-11-30 17:22:47 +01:00
|
|
|
## Download MongoDB
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
- https://www.mongodb.com/try/download/community
|
|
|
|
- Using homebrew `brew tap mongodb/brew`
|
|
|
|
- Using docker image `docker pull mongo`
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## Building
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
See [Building MongoDB](docs/building.md).
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## Running
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
For command line options invoke:
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
```bash
|
|
|
|
$ ./mongod --help
|
|
|
|
```
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
To run a single server database:
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
```bash
|
|
|
|
$ sudo mkdir -p /data/db
|
|
|
|
$ ./mongod
|
|
|
|
$
|
|
|
|
$ # The mongo javascript shell connects to localhost and test database by default:
|
|
|
|
$ ./mongo
|
|
|
|
> help
|
|
|
|
```
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## Installing Compass
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
You can install compass using the `install_compass` script packaged with MongoDB:
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
```bash
|
|
|
|
$ ./install_compass
|
|
|
|
```
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
This will download the appropriate MongoDB Compass package for your platform
|
|
|
|
and install it.
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## Drivers
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
Client drivers for most programming languages are available at
|
|
|
|
https://docs.mongodb.com/manual/applications/drivers/. Use the shell
|
|
|
|
(`mongo`) for administrative tasks.
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## Bug Reports
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports.
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## Packaging
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
Packages are created dynamically by the [buildscripts/packager.py](buildscripts/packager.py) script.
|
|
|
|
This will generate RPM and Debian packages.
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
## Learn MongoDB
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
- Documentation - https://docs.mongodb.com/manual/
|
|
|
|
- Developer Center - https://www.mongodb.com/developer/
|
|
|
|
- MongoDB University - https://learn.mongodb.com
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## Cloud Hosted MongoDB
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
https://www.mongodb.com/cloud/atlas
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## Forums
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
- https://mongodb.com/community/forums/
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
Technical questions about using MongoDB.
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
- https://mongodb.com/community/forums/c/server-dev
|
2021-06-17 22:14:37 +02:00
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
Technical questions about building and developing MongoDB.
|
2021-06-17 22:14:37 +02:00
|
|
|
|
|
|
|
## LICENSE
|
|
|
|
|
2024-02-27 20:47:14 +01:00
|
|
|
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](LICENSE-Community.txt).
|
|
|
|
See individual files for details.
|