Spring MVC NoSQL Server Setup

Posted December 7, 2014 6.4k 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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: . 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.