[DEPRECATED] CentOS 6: Install MongoDB Java REST server

Verisons

  • CentOS 6.4
  • Oracle Java 1.6 JDK
  • MongoDB 2.4

Prerequisites

Install

1. Download, extract tar and mv to /usr/lib

Install as a service

1. Edit /etc/init.d/mongoser

Note: the script hard codes JAVA_HOME, but this could be deferred to the /etc/sysconfig/mongoser script (which you must create) if desired. Note that the normal /etc/profile.sh is *not* run for services.
2. Make it executable

3. Start service

4. Start service on boot

Test

1. Get a list of databases

Output:

Source

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">