title: Cannot connect to mongodb errno:61 Connection refused
body: <p>I recently installed mongodb-2.6.0 with <a href="http://brew.sh/">Homebrew</a>.
  After successfully installed, I tried to connect using the <code>mongo</code> command. I am receiving the following errors which do not allow me to connect:</p>
  
  <pre><code>Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
  
  Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
  
  exception: connect failed
  </code></pre>