Linux Mint - Free and powerful

Tuesday, 16 September 2014

Rubedo CMS - Installing MongoDB 2.4.6 on Linux Mint

From Wikipedia - "MongoDB (from "humongous") is a cross-platform document-oriented database. Classified as a NoSQL database, MongoDB eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas (MongoDB calls the format BSON), making the integration of data in certain types of applications easier and faster. Released under a combination of the GNU Affero General Public License and the Apache License, MongoDB is free and open-source software."

The first issue we hit is that Rubedo does not support MongoDB 2.6.4  (*issues reported with MongoDB 2.6). You need to use MongoDB 2.4.x. I have tried 2.6.4 and it did not work.

This page is about installing directly from the Mint / Ubuntu repositories. I have a feeling that it will not work properly as there is no upstart support or other tools.

Not sure if it will work with Rubedo yet as this blog howto is work in progress. However, this page takes you through the recommended install for 2.6.4

Install the MongoDB server

sudo apt-get install mongodb

Make the data directory

 sudo mkdir -p /data/db

Change ownership of data

sudo chown mongodb:mongodb /data/db  Or 
sudo chown -R $USER /data/db

Run MongoDB


rayd@Alpha ~ $ mongod
mongod --help for help and startup options
Tue Sep 16 09:40:04.968 [initandlisten] MongoDB starting : pid=13318 port=27017 dbpath=/data/db/ 64-bit host=Alpha
Tue Sep 16 09:40:04.968 [initandlisten] db version v2.4.6
Tue Sep 16 09:40:04.968 [initandlisten] git version: nogitversion
Tue Sep 16 09:40:04.968 [initandlisten] build info: Linux allspice 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64 BOOST_LIB_VERSION=1_53
Tue Sep 16 09:40:04.968 [initandlisten] allocator: tcmalloc
Tue Sep 16 09:40:04.968 [initandlisten] options: {}
Tue Sep 16 09:40:05.024 [initandlisten] journal dir=/data/db/journal
Tue Sep 16 09:40:05.024 [initandlisten] recover : no journal files present, no recovery needed
Tue Sep 16 09:40:05.088 [initandlisten] waiting for connections on port 27017
Tue Sep 16 09:40:05.088 [websvr] admin web console waiting for connections on port 28017
Tue Sep 16 09:40:15.445 [initandlisten] connection accepted from #1 (1 connection now open)
Tue Sep 16 09:40:15.453 [conn1] end connection (0 connections now open)


Post a Comment

Thank you for taking the time to comment. Your opinion is important and of value and we appreciate the positive feedback! If you are "Negative Nancy" then please do us, and humanity, a favor, and piss off.

Total Pageviews

Google+ Followers


Blog Archive

Popular Posts

Recent Comments

Rays Twitter feed


Web sites come and go and information is lost and therefore some pages are archived. @rayd123. Powered by Blogger.