Mongo does not start when installed via mongodb-10gen package on Ubuntu 12.04

So, I followed Mongodb installation instructions here: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ . However, after installation, mongodb does not start when start mongodb or /etc/init.d/mongodb start called. After digging and adding debugging comments to /lib/init/upstart (!) I realized that the problem is that the mongodb-10gen inexplicably does not create the /usr/bin/mongodb for the upstart for the link - it creates a bunch of other executables files, but not this one. What's happening? Has the 10gen package dropped? Wrong instructions? Or is something really, really, really, really weird happening on my system?

PS Installing the mongodb package included with Ubuntu 12.04 works like a charm.

+6
source share
1 answer

Is there a mongod executable?

If there is something similar in the /etc/conf.d/mongod.conf or / etc / mongo / mongod.conf file, you can start the server by running mongod -f / etc / mongo / mongod.conf.

If there is no correct configuration, just write it yourself. http://docs.mongodb.org/manual/reference/configuration-options/

My setup .

In addition, if there is an error with the absence of / usr / bin / mongodb, you can simply create a symbolic link from / usr / bin / mongodb to / usr / bin / mongod by doing the following (with root privileges):

 # ln -s /usr/bin/mongod /usr/bin/mongodb 
0
source

All Articles