Spring MVC NoSQL Server Setup

December 7, 2014 3k views


I am fairly new to Digital Ocean and currently trying to set up a basic Spring MVC server with a NoSQL data store (MongoDB) on my droplet with the following specifications:

512MB Ram
20GB SSD Disk
London 1
Ubuntu 14.10 x64

What I have done so far:

  • setup git
  • java jre, jdk 7
  • installed Apache
  • installed Maven
  • mongo DB

What I want to do now is route the server to run on my homepage (currently instead of localhost( I guess I will have to modify the proxy Apache configuration but could not find a proper explanation/ tutorial anywhere on the website. How can I do that?

2 Answers

I managed to run the server by configuring jetty as a dependency. Now the issue is deploying Mongo DB. On localhost I just run it paralelly by opening a command line: "mongod" and connecting to my database. How can I open another terminal in the droplet space?

  • Hello, i was searching a solution for me and i see your post. Your situation were similar as mine, so did you achieve running that project ? Could you help me a bit ?

What I managed to figure out is that chkconfig is not available for Ubuntu anymore, but it is still a part of the instructions for this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-scalable-mongodb-database . I installed the alternative sysv-rc-conf to handle incoming requests to the Mongo DB.

by Bulat Khamitov
MongoDB is a NoSQL database with great features like replication and sharding built in. This allows you to scale your database to as many servers as you would like by distributing content among them. Use this tutorial to help get everything up and running.
Have another answer? Share your knowledge.