O'Reilly logo

MongoDB Cookbook - Second Edition by Amol Nayak, Cyrus Dasadia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Installing and Starting the Server

In this chapter, we will cover the following recipes:

  • Installing single node MongoDB
  • Starting a single node instance using the command-line options
  • Installing single node MongoDB with options from the config file
  • Connecting to a single node in the Mongo shell with JavaScript
  • Connecting to a single node from a Java client
  • Connecting to a single node from a Python client
  • Starting multiple instances as part of a replica set
  • Connecting to the replica set in the shell to query and insert data
  • Connecting to the replica set to query and insert data from a Java client
  • Connecting to the replica set to query and insert data using a Python client
  • Starting a simple sharded environment of two shards
  • Connecting to a shard in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required