Learning Mongodb these days, and encountered this error when starting the mongodb client.
The problem here is that, the mongod daemon has to be started first.The steps to do so is
Ubuntu/Debian
Execute the following command in the terminal
$ sudo /etc/init.d/mongodb start
Fedora/RedHat
$ su
Now, switch to the directory where mongo was installed, and execute the following command in the terminal
# mongodb-linux-xxxx-1.6.x/bin/mongod
This should get the daemon up and running, the normal procedure for starting the mongodb client should then be followed.
No comments:
Post a Comment