title: What is the exact difference between mongod and mongos
body: <p>While I was looking into the MongoDB documentation, I found two different terms <code>mongod</code> and <code>mongos</code>. </p>
  
  <p>While starting the server, I am using <code>./mongod --dbpath &lt;path to mongodb&gt;</code> and I am running <code>./mongo</code> to connect to the server.</p>
  
  <p>Can someone please clarify the differences between these two terms.</p>