Report this

What is the reason for this report?

Spring MVC NoSQL Server Setup

Posted on December 7, 2014

Hello,

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 http://178.62.100.239/) instead of localhost(http://127.0.0.1:8080/). 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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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?

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.