MongoDB on Ubuntu 10.x

The current default seems to have a few issue with ubuntu 10.x - instead it is recommend to use the following :

http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

Notes:

1. Make sure that your data folders are created, by default it's "/data/db" and are chown by mongodb or the user who is running the server

sudo mkdir /data/db
sudo chown `id -u` /data/db

2. If all has installed correctly then start the server :

/usr/bin/mongod

3. Open a new Terminal and then type 'mongo'. This shoud now give you the mongo interactive shell.

If you get this :

MongoDB shell version: 1.8.2
connecting to: test
Error: couldn't connect to server 127.0.0.1 shell/mongo.js:79
exception: connect failed

It means that 'mongod' i.e. the actual mongodb server is not running.

User Stories :

http://www.10gen.com/presentation/mongosf2011/disney




Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.
Bg