MongoDB Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

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 the shell and performing operations