Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling mongodb in mac
    text
    copied!<p>I am trying to install mongodb on my system and following these steps(<a href="http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/" rel="nofollow">http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/</a>) in doing so. I have installed Homebrew and MacPorts and have installed the mongodb using both Homebrew and MacPorts. But when i type mongod:</p> <p>I get this:</p> <pre><code>mongod --help for help and startup options Sun Sep 9 20:58:35 [initandlisten] MongoDB starting : pid=6381 port=27017 dbpath=/data/db/ 64-bit host=Cs-MacBook-Pro.local Sun Sep 9 20:58:35 [initandlisten] db version v2.0.7, pdfile version 4.5 Sun Sep 9 20:58:35 [initandlisten] git version: nogitversion Sun Sep 9 20:58:35 [initandlisten] build info: Darwin Cs-MacBook-Pro.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49 Sun Sep 9 20:58:35 [initandlisten] options: {} Sun Sep 9 20:58:35 [initandlisten] exception in initAndListen: 10296 dbpath (/data/db/) does not exist, terminating Sun Sep 9 20:58:35 dbexit: Sun Sep 9 20:58:35 [initandlisten] shutdown: going to close listening sockets... Sun Sep 9 20:58:35 [initandlisten] shutdown: going to flush diaglog... Sun Sep 9 20:58:35 [initandlisten] shutdown: going to close sockets... Sun Sep 9 20:58:35 [initandlisten] shutdown: waiting for fs preallocator... Sun Sep 9 20:58:35 [initandlisten] shutdown: lock for final commit... Sun Sep 9 20:58:35 [initandlisten] shutdown: final commit... Sun Sep 9 20:58:35 [initandlisten] shutdown: closing all files... Sun Sep 9 20:58:35 [initandlisten] closeAllFiles() finished Sun Sep 9 20:58:35 dbexit: really exiting now </code></pre> <p>When i type mongo, i get this:</p> <pre><code>MongoDB shell version: 2.0.7 connecting to: test Sun Sep 9 20:58:39 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84 exception: connect failed </code></pre> <p>Need some help on this...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload