MongoDB Examples with the Mongo Shell

In this post we will go through some basic examples on how to write, read, update and delete data with MongoDB using the Mongo Shell. Pre-Requisites: You will need to have a running MongoDB Server, you can follow this post

MongoDB Setup Sharded Cluster

Our Environment: #HOSTNAME IP_ADDR mongo-router 192.168.1.120 mongo-config 192.168.1.121 mongo-shard-1 192.168.1.126 mongo-shard-2 192.168.1.127 mongo-shard-3 192.168.1.128 Install Packages: yum install epel-release -y yum install mongodb-org* Setup

Close You've successfully subscribed to Sysadmins.
Close Great! You've successfully signed up.
Close Welcome back! You've successfully signed in.
Close Success! Your account is fully activated, you now have access to all content.
Close Success! Your billing info is updated.
Close Billing info update failed.