Tuesday, March 20, 2012

Installing MongoDB on Fedora 16

Needing to install MongoDB for some quick tests, I found lots of blogs/wikis about how to get started. All inaccurate regarding Fedora 16: no need at all to add additional repositories.

Install


sudo yum install mongodb-server mongodb

Start


sudo service mongod start

done!

Optional: some more insight


Configuration

File is at:
/etc/mongodb.conf

Interesting options

# disallow table scans; if we do, I'd fix our code:
notablescan = true
# enable HTTP interface
nohttpinterface = false
# Verbose logging output.
verbose = true

Where is the stuff?

dbpath=/var/lib/mongodb
pidfilepath=/var/run/mongodb/mongodb.pid
logpath=/var/log/mongodb/mongodb.log

Local console: http://localhost:28017/

Have MongoDB start as a service

systemctl enable mongod.service